pike.git / lib / modules / Stdio.pmod / Readline.pike

version» Context lines:

pike.git/lib/modules/Stdio.pmod/Readline.pike:1: - // $Id: Readline.pike,v 1.7 1999/03/23 18:30:06 marcus Exp $ + // $Id: Readline.pike,v 1.8 1999/03/23 20:48:36 marcus Exp $      class OutputController   {    static private object outfd, term;    static private int xpos = 0, columns = 0;    static private mapping oldattrs = 0;       void disable()    {    catch{
pike.git/lib/modules/Stdio.pmod/Readline.pike:77:    return;    while(xpos+n>=columns) {    int l = columns-xpos;    outfd->write(s[..l-1]);    s = s[l..];    n -= l;    xpos = 0;    if(!term->tgetflag("am"))    outfd->write((term->put("cr")||"")+(term->put("do")||"\n"));    } -  if(xpos==0 && term->tgetflag("am")) -  outfd->write(" "+(term->put("le")||"")); +  string le; +  if(xpos==0 && term->tgetflag("am") && (le=term->put("le"))) +  outfd->write(" "+le);    if(n>0) {    outfd->write(s);    xpos += n;    }    }       void write(string s)    {    low_write(escapify(s));    }