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.1 1999/03/15 17:15:53 marcus Exp $ + // $Id: Readline.pike,v 1.2 1999/03/15 17:25:16 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:921:    else if(!hist)    historyobj = 0;    else if(historyobj)    historyobj->set_max_history(hist);    else    historyobj = History(hist);   }      void destroy()   { +  if(input_controller)    destruct(input_controller); -  +  if(output_controller)    destruct(output_controller);   }      void create(object|void infd, object|string|void interm,    object|void outfd, object|string|void outterm)   {    output_controller = OutputController(outfd || infd, outterm || interm);    input_controller = InputController(infd, interm);    DefaultEditKeys(this_object());   }