Branch: Tag:

2000-01-10

2000-01-10 00:41:11 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

Readline->edit now attempts to support dumb terminals

Rev: lib/modules/Stdio.pmod/Readline.pike:1.30

1: - // $Id: Readline.pike,v 1.29 1999/10/26 15:50:10 js Exp $ + // $Id: Readline.pike,v 1.30 2000/01/10 00:41:11 hubbe Exp $      class OutputController   {
1395:      string edit(string data, string|void local_prompt)   { +  if(data && strlen(data) && input_controller->dumb) +  { +  string ret=edit("", (local_prompt || get_prompt()) +" ["+data+"] "); +  return (!ret || !strlen(ret))?data:ret; +  }    string old_prompt;       if(newline_func == read_newline)