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.52 2003/10/09 16:52:07 grubba Exp $ + // $Id: Readline.pike,v 1.53 2003/10/09 17:08:34 grubba Exp $   #pike __REAL_VERSION__      //!   //! @fixme   //! Ought to have support for charset conversion.   class OutputController   {    static private .File outfd;    static private .Terminfo.Termcap term;    static private int xpos = 0, columns = 0;
pike.git/lib/modules/Stdio.pmod/Readline.pike:312:    }       //!    void low_move_backward(int n)    {    if(n<=0)    return;    if(active_attributes && !term->tgetflag("ms"))    low_disable_attributes();    if(xpos-n>=0) { -  outfd->write(term->put("LE", n) || (term->put("le")||term-put("kb")||"\8")*n); +  outfd->write(term->put("LE", n) || (term->put("le")||term-put("kb")||"\10")*n);    xpos -= n;    } else {    int l = 1+(n-xpos-1)/columns;    low_move_upward(l);    n -= l*columns;    if(n<0)    low_move_forward(-n);    else if(n>0)    low_move_backward(n);    }