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.54 2003/10/09 19:26:14 grubba Exp $ + // $Id: Readline.pike,v 1.55 2004/02/26 21:51:17 agehall 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:510:    static private int set_enabled(int e)    {    if (e != enabled)    {    enabled = e;    if (enabled)    {    string oldprefix = prefix;    prefix = "";    prefix = process_input(oldprefix); +  if ((!infd->set_read_callback || !infd->set_close_callback) && infd->set_nonblocking) +  infd->set_nonblocking( read_cb, 0, close_cb ); +  else {    infd->set_read_callback( read_cb );    infd->set_close_callback( close_cb );    } -  +  }    else    infd->set_blocking();    return !enabled;    }    else    return enabled;    }       //!    int isenabled()