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.3 1999/03/17 23:35:40 marcus Exp $ + // $Id: Readline.pike,v 1.4 1999/03/17 23:46:20 marcus Exp $      class OutputController   {    static private object outfd, term;    static private int xpos = 0, columns = 0;       void check_columns()    {    catch {    int c = outfd->tcgetattr()->columns;
pike.git/lib/modules/Stdio.pmod/Readline.pike:167:    xpos = 0;    return;    }    if(!partial) {    outfd->write(term->put("ho")||term->put("cm", 0, 0)||"\f");    xpos = 0;    }    outfd->write(term->put("cd")||(partial?"":"\f"));    }    +  void beep() +  { +  outfd->write(term->put("bl")||""); +  } +     void create(object|void _outfd, object|string|void _term)    {    outfd = _outfd || Stdio.File("stdout");    term = objectp(_term)? _term : .Terminfo.getTerm(_term);    check_columns();    }      }      class InputController