summaryrefslogtreecommitdiff
path: root/console/display.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-08-29 23:57:44 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-08-29 23:57:44 +0000
commitf713724dc9049b3b7bb8bcc3d112747619c3fa13 (patch)
treeac6579c635ad3ffa7a4908d4bf48d34763d68dc4 /console/display.h
parentc19963fb7ad44ac4c5f908f3587e551c727c5be1 (diff)
2002-08-30 Marcus Brinkmann <marcus@gnu.org>
* 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.
Diffstat (limited to 'console/display.h')
-rw-r--r--console/display.h2
1 files changed, 1 insertions, 1 deletions
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);