From 58e77f3b3af01918a29ac237b2fb732f76fa938c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net> Date: Tue, 10 Oct 2000 12:58:05 -0700 Subject: [PATCH] bugfix for set_prompt Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.13 --- lib/modules/Protocols.pmod/TELNET.pmod | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/modules/Protocols.pmod/TELNET.pmod b/lib/modules/Protocols.pmod/TELNET.pmod index 9c804a9212..e01c9bb7c9 100644 --- a/lib/modules/Protocols.pmod/TELNET.pmod +++ b/lib/modules/Protocols.pmod/TELNET.pmod @@ -1,5 +1,5 @@ // -// $Id: TELNET.pmod,v 1.12 2000/09/30 20:35:23 per Exp $ +// $Id: TELNET.pmod,v 1.13 2000/10/10 19:58:05 hubbe Exp $ // // The TELNET protocol as described by RFC 764 and others. // @@ -925,6 +925,7 @@ class Readline read_cb2(id,data+"\n"); } + static string prompt=""; static mixed call_callback(mixed what, mixed ... args) { switch(what) @@ -944,6 +945,7 @@ class Readline // werror("Enabeling READLINE, term=%s\n",term); readline=Stdio.Readline(this_object(),lower_case(term)); readline->set_nonblocking(readline_callback); + readline->set_prompt(prompt); readline->enable_history(200); /* enable data processing */ } @@ -994,9 +996,9 @@ class Readline } } - static string prompt=""; void set_prompt(string s) { +// werror("TELNET: prompt=%O\n",s); if(readline) { prompt=s; -- GitLab