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.48 2003/07/01 15:45:35 per Exp $ + // $Id: Readline.pike,v 1.49 2003/07/19 01:02:58 nilsson Exp $   #pike __REAL_VERSION__    -  + //!   class OutputController   {    static private .File outfd;    static private .Terminfo.Termcap 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:408:    void create(.File|void _outfd,    .Terminfo.Termcap|string|void _term)    {    outfd = _outfd || Stdio.File( "stdout", "w" );    term = objectp(_term)? _term : .Terminfo.getTerm(_term);    catch { oldattrs = outfd->tcgetattr(); };    check_columns();    }   }    + //!   class InputController   {    static private object infd, term;    static private int enabled = -1;    static private function(:int) close_callback = 0;    static private string prefix="";    static private mapping(int:function|mapping(string:function)) bindings=([]);    static private function grab_binding = 0;    static private mapping oldattrs = 0;   
pike.git/lib/modules/Stdio.pmod/Readline.pike:764:    // Go to dumb mode.    dumb = 1;    return;    }    catch { infd->tcsetattr((["ECHO":0,"ICANON":0,"VMIN":1,"VTIME":0,    "VLNEXT":0])); };    }      }    + //!   class DefaultEditKeys   {    static private multiset word_break_chars =    mkmultiset("\t \n\r/*?_-.[]~&;\!#$%^(){}<>\"'`"/"");    static object _readline;       //!    void self_insert_command(string str)    {    _readline->insert(str, _readline->getcursorpos());
pike.git/lib/modules/Stdio.pmod/Readline.pike:1081:       //!    void create(object readline)    {    _readline = readline;    set_default_bindings();    }      }    + //!   class History   {    static private array(string) historylist;    static private mapping(int:string) historykeep=([]);    static private int minhistory, maxhistory, historynum;       //!    string encode()    {    return historylist*"\n";