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.50 2003/07/23 11:42:24 grubba Exp $ + // $Id: Readline.pike,v 1.51 2003/07/23 12:39:55 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:361:       //!    void erase(string s)    {    low_erase(escapified_width(s));    }       //!    void newline()    { -  string cr = term->put("cr"), down = term->put("do"); +  string cr = term->put("cr"); +  // NOTE: Use "sf" in preference to "do" since "do" for "xterm" on HPUX +  // is "\33[B", which doesn't scroll when at the last line. +  string down = term->put("sf") || term->put("do");    if(active_attributes && !term->tgetflag("ms"))    low_disable_attributes();    if(cr && down)    outfd->write(cr+down);    else    // In this case we have ONLCR (hopefully)    outfd->write("\n");    xpos = 0;    }