From be549330de1979ba914194bd79bfd7eb998a792e Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 10 Sep 2002 18:05:41 +0000 Subject: console/ 2002-09-10 Marcus Brinkmann * display.c (DISPLAY_CHANGE_FLAGS): New macro. (struct changes): New member FLAGS. (display_flush_filechange): Handle change of flags. (display_output_some): Initialize DISPLAY->changes.flags. (display_start_output): Clear CONS_FLAGS_SCROLL_LOCK in DISPLAY. (display_stop_output): Set CONS_FLAGS_SCROLL_LOCK in DISPLAY. hurd/ 2002-09-10 Marcus Brinkmann * console.h (struct cons_display): New member FLAGS. (union cons_change_t): Likewise for WHAT->flags. libcons/ 2002-09-10 Marcus Brinkmann * cons.h: New prototype for cons_vcons_set_scroll_lock. (struct vcons): Add member FLAGS to state. * file-changed.c (cons_S_file_changed): Handle change of flags. * vcons-refresh.c (cons_vcons_refresh): Copy FLAGS field. Call cons_vcons_set_scroll_lock. * cons-switch.c (cons_switch): Initialize VCONS_ENTRY even if DELTA is negative. utils/ 2002-09-09 Marcus Brinkmann * console-ncurses.c (cons_vcons_set_scroll_lock): New function. --- hurd/ChangeLog | 5 +++++ hurd/console.h | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'hurd') diff --git a/hurd/ChangeLog b/hurd/ChangeLog index deea9289..d4c72fac 100644 --- a/hurd/ChangeLog +++ b/hurd/ChangeLog @@ -1,3 +1,8 @@ +2002-09-10 Marcus Brinkmann + + * console.h (struct cons_display): New member FLAGS. + (union cons_change_t): Likewise for WHAT->flags. + 2002-09-04 Marcus Brinkmann * console.h: Include . diff --git a/hurd/console.h b/hurd/console.h index b673db54..bf15e357 100644 --- a/hurd/console.h +++ b/hurd/console.h @@ -65,7 +65,8 @@ typedef union uint32_t screen_scr_lines : 1; uint32_t bell_audible : 1; uint32_t bell_visible : 1; - uint32_t _unused : 25; + uint32_t flags : 1; + uint32_t _unused : 24; uint32_t not_matrix : 1; /* Here are 32 more unused bits. */ } what; @@ -82,6 +83,11 @@ struct cons_display uint32_t version; /* Version of interface. Lower 16 bits define the age, upper 16 bits the major version. */ + + /* Various one bit flags that don't deserve their own field. */ +#define CONS_FLAGS_SCROLL_LOCK 0x00000001 + uint32_t flags; + struct { uint32_t width; /* Width of screen matrix. */ -- cgit v1.2.3