* fhandler.h (dev_console::set_color): Define new function.
(dev_console::set_default_attr): Ditto, moved from fhandler_console. (dev_console::fillin_info): Ditto. Accommodate this change throughout this file. (fhandler_console::get_win32_attr): Eliminate. * fhandler_console.cc (fhandler_console::get_tty_stuff): Properly set default attributes on initialization. (fhandler_console::open): Set current attributes rather than default color on open. (fhandler_console::get_win32_attr): Eliminate. (dev_console::set_color): New function. Move get_win32_attr stuff here. (dev_console::set_default_attr): New function, moved from fhandler_console. (dev_console::fillin_info): Ditto. (fhandler_console::char_command): Call set_color to set screen characteristics.
This commit is contained in:
@ -834,6 +834,9 @@ class dev_console
|
||||
|
||||
bool con_to_str (char *d, const char *s, DWORD sz);
|
||||
bool str_to_con (char *d, const char *s, DWORD sz);
|
||||
void set_color (HANDLE);
|
||||
bool fillin_info (HANDLE);
|
||||
void set_default_attr ();
|
||||
|
||||
friend class fhandler_console;
|
||||
};
|
||||
@ -846,9 +849,7 @@ class fhandler_console: public fhandler_termios
|
||||
|
||||
/* Output calls */
|
||||
void set_default_attr ();
|
||||
WORD get_win32_attr ();
|
||||
|
||||
bool fillin_info ();
|
||||
void clear_screen (int, int, int, int);
|
||||
void scroll_screen (int, int, int, int, int, int);
|
||||
void cursor_set (bool, int, int);
|
||||
|
Reference in New Issue
Block a user