From f713724dc9049b3b7bb8bcc3d112747619c3fa13 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Thu, 29 Aug 2002 23:57:44 +0000 Subject: 2002-08-30 Marcus Brinkmann * display.c (display_create): Likewise. Set DISPLAY->attr.attr_def instead the color versions. (struct attr): Remove fgcol_def, bgcol_def, and add attr_def. (handle_esc_bracket_m): Set all attributes to their defaults for case 0. Set default color using default attribute for case 49 and case 39. (display_output_one): Likewise. * console.c (options): Add --attribute option. (parse_opt): Parse --attribute option. Bail out with argp_error on error. (netfs_append_args): ... (struct cons): Replace foreground and background with new attribute member. (vcons_lookup): Pass CONS->attribute to display_create instead CONS->foreground and CONS->background. (main): Set default colors and attributes. (parse_attributes): New function. --- console/display.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console/display.h') diff --git a/console/display.h b/console/display.h index 26430cd3..1fe6f6c0 100644 --- a/console/display.h +++ b/console/display.h @@ -31,7 +31,7 @@ void display_init (void); /* Create a new virtual console display, with the system encoding being ENCODING and the default colors being FOREGROUND and BACKGROUND. */ error_t display_create (display_t *r_display, const char *encoding, - int foreground, int background); + conchar_attr_t attr); /* Destroy the display DISPLAY. */ void display_destroy (display_t display); -- cgit v1.2.3