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.31 2000/04/05 20:45:43 leif Exp $ + // $Id: Readline.pike,v 1.32 2000/04/05 21:15:14 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:177:   #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. +  // 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));    }