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.27 1999/10/04 00:16:42 js Exp $ + // $Id: Readline.pike,v 1.28 1999/10/21 14:37:15 marcus 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:263:    outfd->write(term->put("UP", n) || (term->put("up")||"")*n);    }       void low_move_forward(int n)    {    if(n<=0)    return;    if(active_attributes && !term->tgetflag("ms"))    low_disable_attributes();    if(xpos+n<columns) { -  outfd->write(term->put("RI", n) || (term->put("ri")||"")*n); +  outfd->write(term->put("RI", n) || +  (term->put("nd")||term->put("ri")||"")*n);    xpos += n;    } else {    int l = (xpos+n)/columns;    low_move_downward(l);    n -= l*columns;    if(n<0)    low_move_backward(-n);    else if(n>0)    low_move_forward(n);    }