--- lbbs/src/screen.c 2004/10/23 18:41:41 1.6 +++ lbbs/src/screen.c 2005/03/02 16:33:49 1.8 @@ -78,6 +78,26 @@ press_any_key () return igetch (); } +void +set_input_echo(int echo) +{ + char temp[256]; + + if (echo) + { + outc ('\x83'); // ASCII code 131 + iflush (); + } + else + { +// outc ('\x85'); // ASCII code 133 + prints ("\xff\xfb\x01\xff\xfb\x03"); + iflush (); + igetch (); + igetch (); + } +} + int str_input (char *buffer, int buffer_length, int echo_mode) { @@ -88,8 +108,10 @@ str_input (char *buffer, int buffer_leng while (c = igetch ()) { - if (c == CR || c == LF) + if (c == CR) break; + if (c == LF) + continue; if (c == BACKSPACE) { if (offset > 0) @@ -325,15 +347,3 @@ display_file_ex (const char *filename, i return -1; } - -int -show_top () -{ - return 0; -} - -int -show_bottom () -{ - return 0; -}