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.56 2004/11/02 20:01:53 grubba Exp $ + // $Id: Readline.pike,v 1.57 2004/11/02 20:19:59 mast 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:1088:    // Termcap-style    ({ "\\!ku", up_history }),    ({ "\\!kd", down_history }),    ({ "\\!kr", forward_char }),    ({ "\\!kl", backward_char }),    ({ "\\!kD", delete_char }),    ({ "\\!kb", backward_delete_char }),    ({ "^[\\!kD", kill_word }),    ({ "^[\\!kb", backward_kill_word }),    ({ "\\!kh", beginning_of_line }), +  ({ "\\!@7", end_of_line }), +  ({ "\\!@8", newline }), +  ({ "\\!ho", beginning_of_line }),    // Terminfo-style    ({ "\\!kcuu1", up_history }),    ({ "\\!kcud1", down_history }),    ({ "\\!kcuf1", forward_char }),    ({ "\\!kcub1", backward_char }),    ({ "\\!kdch1", delete_char }),    ({ "\\!kbs", backward_delete_char }),    ({ "^[\\!kdch1", kill_word }),    ({ "^[\\!kbs", backward_kill_word }),    ({ "\\!khome", beginning_of_line }),    ({ "\\!kend", end_of_line }),    ({ "\\!kent", newline }), -  +  ({ "\\!home", beginning_of_line }),    });       //!    static void set_default_bindings()    {    object ic = _readline->get_input_controller();    ic->nullbindings();    for(int i=' '; i<'\177'; i++)    ic->bindstr(sprintf("%c", i), self_insert_command);    for(int i='\240'; i<='\377'; i++)