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.32 2000/04/05 21:15:14 leif Exp $ + // $Id: Readline.pike,v 1.33 2000/04/06 09:06:22 hubbe Exp $      class OutputController   {    static private object outfd, term;    static private int xpos = 0, columns = 0;    static private mapping oldattrs = 0;      #define BLINK 1   #define BOLD 2   #define DIM 4
pike.git/lib/modules/Stdio.pmod/Readline.pike:173:    s = s[..i-1]+"^?"+s[i+1..];    else if(s[i]>=128 && s[i]<160)    s = s[..i-1]+sprintf("~%c", s[i]-128+'@')+s[i+1..];    return s;   #endif    }          static int width(string s)    { - #if 1 -  // FIXME: On Digital Unix, the terminal handler doesn't seem to -  // like what Pike does in Readline, so it hangs. But it doesn't do -  // that if we provoke output (even a null string output!) at this -  // point. A less ugly fix than outfd->write("") might be desirable -  // in the future. -  outfd->write(""); - #endif +     return strlen(s);    }       static int escapified_width(string s)    {    return width(escapify(s));    }       void low_write(string s, void|int word_break)    {