rem: console.ansi_gotoxy(1,1); console.clearline(); console.print(this.topicline); 
context: function Screen_print_line(line)  {	var i=0;	var lastspace=0;	var linestart=0;	var prev_colour="";	var last_colour="";	var cname="";	var topic="";	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-1);	// Remove bold	line=line.replace(/\x02/g,"");	// mIRC colour codes	line=line.replace(/\x03([0-9\,]{1,5})/g,		function(str,p1,offset,s)  {			var p2;			var ending=null;			var codes=[null];			var ret=null;						ending="";			codes=p1.split(",");			p1=codes[0];			codes.shift();			p2=codes[0];			codes.shift();			ending=","+codes.join(",");			if(p2==undefined)  {				p2="-1";			}			if(p2.length>2)  {				ending=p2.substr(2)+ending;				p2=p2.substr(0,2);			}			if(p1.length>2)  {				ending=p1.substr(2)+ending;				p1=p1.substr(0,2);			}			p1=Number(p1);			p2=Number(p2);			p1=p1 % 16;			if(p2>=0 && p2<=99)  {				p2=Number(p2) % 8;			}			else  {				p2=8;			}			switch(p1)  {				case 0:					ret="\x01H\x01W";					break;				case 1:					ret="\x01N\x01K";					break;				case 2:					ret="\x01N\x01B";					break;				case 3:					ret="\x01N\x01G";					break;				case 4:					ret="\x01N\x01R";					break;				case 5:					ret="\x01N\x01Y";					break;				case 6:					ret="\x01H\x01M";					break;				case 7:					// This is supposed to be ORANGE damnit!					ret="\x01H\x01R";					break;				case 8:					ret="\x01H\x01Y";					break;				case 9:					ret="\x01H\x01G";					break;				case 10:					ret="\x01N\x01C";					break;				case 11:					ret="\x01H\x01C";					break;				case 12:					ret="\x01H\x01B";					break;				case 13:					ret="\x01H\x01M";					break;				case 14:					ret="\x01H\x01K";					break;				case 15:					ret="\x01N\x01W";					break;				default:					ret="";			}			switch(p2)  {				case 0:					ret=ret+"\x017";					break;				case 1:					ret=ret+"\x010";					break;				case 2:					ret=ret+"\x014";					break;				case 3:					ret=ret+"\x012";					break;				case 4:					ret=ret+"\x011";					break;				case 5:					ret=ret+"\x013";					break;				case 6:					ret=ret+"\x015";					break;				case 7:					// This is supposed to be ORANGE damnit!					ret=ret+"\x016";					break;			}			return ret+ending;		}	);	if(line.length > 78)  {		// Word Wrap...		for(var j=0;j<=line.length;j++)  {			switch(line.charAt(j))  {				case "\x01":					last_colour=last_colour+line.substr(j,2);					j+=1;					break;				case " ":					lastspace=j;				default:					if(i>=78)  {						if(lastspace==linestart-1)  {							lastspace=j;						}						console.print(prev_colour+line.substring(linestart,lastspace+1));						prev_colour=last_colour;						console.crlf();						this.line.shift();						this.line.push(prev_colour+line.substring(linestart,lastspace+1));						linestart=lastspace+1;						j=lastspace;						i=0;					}					i+=1;			}		}	}	if(i<=78)  {		console.print(prev_colour+line.substr(linestart));		this.line.shift();		this.line.push(prev_colour+line.substr(linestart));		console.crlf();	}	if(!connected)  {		cname="No channel";		topic="Not in channel";	}	else if (channels==undefined)  {		cname="No channel";		topic="Not in channel";	}	else if (channels.current==undefined)  {		cname="No channel";		topic="Not in channel";	}	else  {		cname=channels.current.display;		topic=channels.current.topic;	}	console.print(this.statusline);	console.crlf();	console.ansi_gotoxy(1,1);	console.clearline();	console.print(this.topicline);	this.update_input_line();}
meta: 9592	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9592/3bae9a955258c030eafdbe140e92ab69e91b9b74/irc.js/clean/irc.js