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.60 2008/06/28 16:37:00 nilsson Exp $ + // $Id: Readline.pike,v 1.61 2008/07/24 03:16:45 mbaehr Exp $   #pike __REAL_VERSION__      //!   //! @fixme   //! Ought to have support for charset conversion.   class OutputController   {    protected private .File outfd;    protected private .Terminfo.Termcap term;    protected private int xpos = 0, columns = 0;
pike.git/lib/modules/Stdio.pmod/Readline.pike:1537:    }    redisplay(0, 1);    setcursorpos(p);   }      //! @fixme   //! Document this function   void write(string msg,void|int word_wrap)   {    int p = cursorpos; -  setcursorpos(0); -  if(!input_controller->dumb) { -  output_controller->bol(); -  output_controller->clear(1); -  } +     array(string) tmp=msg/"\n";    foreach(tmp[..<1],string l)    {    output_controller->write(l,word_wrap);    output_controller->newline();    }    output_controller->write(tmp[-1],word_wrap);       cursorpos=sizeof(text);    redisplay(0, 1);