add: console.crlf(); 
context: function Screen_handle_key(key)  {	var commands=[null];	var command=null;	var nickmatch="";	var lastspace=0;	switch(key)  {		case "\r":			if(this.input_buffer=="")  {				break;			}			history.addline(this.input_buffer);			while(history.line.length>MAX_HIST)  {				history.shift();			}			this.input_buffer=this.input_buffer.replace(/%C/g,"\x03");			this.input_buffer=this.input_buffer.replace(/%%/g,"%");			if(this.input_buffer.substr(0,1)=="/" && this.input_buffer.substr(1,1)!="/")  {				commands=this.input_buffer.split(" ");				command=commands.shift();				command=command.substr(1);				command=command.toUpperCase();				send_command(command,commands.join(" "));			}			else  {				if(this.input_buffer.substr(0,1)=="/")  {					this.input_buffer=this.input_buffer.substr(1);				}				if(channels.current==undefined)  {					this.print_line("\x01H\x01RYou are not in a channel!\x01N\x01W");				}				else  {					channels.current.send(this.input_buffer);					this.print_line("\x01N\x01M<\x01N\x01W"+nick+"\x01N\x01M>\x01N\x01W "+this.input_buffer);				}			}			this.input_buffer="";			this.input_pos=0;			this.update_input_line();			break;		case "\x08":			if(this.input_pos > 0)  {				this.input_buffer=this.input_buffer.slice(0,this.input_pos-1)+this.input_buffer.slice(this.input_pos);				this.input_pos--;				this.update_input_line();			}			break;		case "\x0b":			this.input_buffer=this.input_buffer+"%C";			this.input_pos+=2;			break;		case "\x1e":		// Up arrow			if(history.index==null)  {				history.incomplete=this.input_buffer;			}			this.input_buffer=history.previous;			this.input_pos=this.input_buffer.length;			this.update_input_line()			break;		case "\x0a":		// Down arrow			if(history.index==null)  {				history.incomplete=this.input_buffer;			}			this.input_buffer=history.next;			this.input_pos=this.input_buffer.length;			this.update_input_line()			break;		case "\x1d":		// Left arrow			if(this.input_pos > 0)  {				this.input_pos--;			}			this.update_input_line();			break;		case "\x02":		// Home			this.input_pos=0;			this.update_input_line()			break;		case "\x05":		// End			this.input_pos=this.input_buffer.length;			this.update_input_line()			break;		case "\x06":		// right arrow			if(this.input_pos < (this.input_buffer.length))  {				this.input_pos++;			}			this.update_input_line();			break;		case "\t":			// Tab			lastspace=this.input_buffer.lastIndexOf(" ",this.input_pos);			nickmatch=channels.current.matchnick(this.input_buffer.substr(lastspace+1,this.input_pos-lastspace-1));			if(nickmatch != null) {				this.input_buffer=this.input_buffer.substr(0,lastspace+1)+nickmatch+(lastspace==-1?": ":" ")+this.input_buffer.substr(this.input_pos);				this.input_pos=lastspace+2+nickmatch.length;				if(lastspace==-1)					this.input_pos++;			}			this.update_input_line();			break;		default:			if(ascii(key)<ascii(' '))  {				if(ascii(key) != 27 && console.handle_ctrlkey!=undefined)  {					console.line_counter=0;	// defeat pause					console.ansi_gotoxy(1,console.screen_rows-1);					console.clearline();					console.ansi_gotoxy(1,console.screen_rows);					console.clearline();					console.ansi_gotoxy(1,console.screen_rows-2);					console.handle_ctrlkey(key,0); // for now					console.print(this.topicline);					console.print(this.statusline);					this.update_input_line();				}			}			else  {				this.input_buffer=this.input_buffer.slice(0,this.input_pos)+key+this.input_buffer.slice(this.input_pos);				this.input_pos++;				this.update_input_line();			}	}}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/c5fb44e5d50a49f97126781e1705d7000f365d83/irc.js/clean/irc.js