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.34 2000/08/29 14:00:18 noring Exp $ + // $Id: Readline.pike,v 1.35 2000/09/04 09:48:56 noring 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:1398:      void set_blocking()   {    set_nonblocking(0);   }      string edit(string data, string|void local_prompt, array(string)|void attrs)   {    if(data && strlen(data) && input_controller->dumb)    { -  string ret=edit("", (local_prompt || get_prompt()) +" ["+data+"] ", attrs); +  string ret=edit("", (local_prompt || get_prompt()) +"["+data+"] ", attrs);    return (!ret || !strlen(ret))?data:ret;    }    string old_prompt;    array(string) old_attrs;       if(newline_func == read_newline)    return 0;       if(local_prompt)    {