2003-05-21 Micha Nelissen * fhandler.h (dev_console): add title state variables. * fhandler.h (dev_console): add cursor end-of-buffer variables. * fhandler_console.cc (macro: srTop, srBottom; char_command): scroll_region is not relative to window top. * fhandler_console.cc (get_tty_stuff): save old console title. * fhandler_console.cc (scroll_screen): renamed variables sr1, sr2 to srScroll, srClip respectively which is clearer. * fhandler_console.cc (scroll_screen): added clipping counterpart for top < clip.top. * fhandler_console.cc (scroll_screen, char_command, write_normal): more debug info. * fhandler_console.cc (char_command): added escape sequence for codepage switching to enable line drawing characters. * fhandler_console.cc (write_normal): end of buffer check enables cursor to be out of range; it better emulates *nix terminal behaviour; ie. it is now possible to write a single character at right bottom of console buffer without the console scrolling the buffer. * fhandler_console.cc (write_normal): cancelled premature optimization, do always use scroll_screen instead of '\n' sometimes * fhandler_write.cc (write): if `user' clears title, then don't add `|'