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.30 2000/01/10 00:41:11 hubbe Exp $ + // $Id: Readline.pike,v 1.31 2000/04/05 20:45:43 leif 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 werror("") 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)    {