diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2003-08-15 21:07:31 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2003-08-15 21:07:31 +0000 |
commit | 1ee1295c23c6a62b957a8a593639460b592b9b64 (patch) | |
tree | 0974b6460eeb6248a7f7ae48109541f0c3122b70 /console-client/display.h | |
parent | 8ba76d487d9820cdbe5d40337ef787c77a6389a9 (diff) |
2003-08-11 Marco Gerards <metgerards@student.han.nl>
* console.c (cons_vcons_set_dimension): New function.
* display.h (display_ops): New interface set_dimension.
* ncursesw.c (ncursesw_set_dimension): New function.
(ncursesw_displ): Add ncursesw_set_dimension.
(ncurses_lock): Make variable static.
(current_width): New variable.
(current_height): Likewise.
(cursor_state): Likewise.
(cursor_hidden): Likewise.
(driver_ncursesw_ops): Added ncursesw_set_dimension.
* vga.c (current_width): New variable.
(current_height): Likewise.
(vga_display_set_cursor_status): If the cursor is outside the
screen, don't change the visibility.
(vga_display_set_cursor_pos): Don't set the cursor outside the
physical screen. Update cursor_hidden and hide/unhide
to match cursor_hidden. Function moved to above
vga_display_set_cursor_status.
(vga_display_scroll): Report an error when scrolling is not
possible.
(vga_display_clear): Recalculate cols, rows and length.
(vga_display_write): Make it wrap around the edge.
(vga_set_dimension): New function.
(vga_disp_ops): Added vga_set_dimension.
* ncursesw.c (conspad): New variable.
(padx): Likewise.
(pady): Likewise.
(autoscroll): Likewise.
(refresh_screen): new function.
(input_loop): Use conspad instead of (the default) stdscr.
Call console_exit instead of exiting here. Add keybindings
'j, 'k', 'l' and 'i' to scroll the console, add keybinding 'a'
to switch autoscroll.
(mvwputsn): Use conspad instead of (the default) stdscr.
(ncursesw_scroll): Likewise.
(ncursesw_write): Likewise.
(ncursesw_driver_start): Likewise. Initialize conspad.
(ncursesw_update): Call refresh_screen to refresh the console.
(ncursesw_set_cursor_pos): Use conspad instead of (the default)
stdscr. Make the console autoscroll.
* ncursesw.c (ncursesw_driver_start): Remove endwin call at
the end of the function.
* ncursesw.c (ncursesw_set_cursor_status): If the status can
not be set, use another status that can sanely be used instead
of the unavailable status.
Diffstat (limited to 'console-client/display.h')
-rw-r--r-- | console-client/display.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/console-client/display.h b/console-client/display.h index 44e62773..3dc97fde 100644 --- a/console-client/display.h +++ b/console-client/display.h @@ -1,5 +1,5 @@ /* display.h - The interface to and for a display driver. - Copyright (C) 2002 Free Software Foundation, Inc. + Copyright (C) 2002, 2003 Free Software Foundation, Inc. Written by Marcus Brinkmann. This file is part of the GNU Hurd. @@ -133,6 +133,13 @@ struct display_ops /* Do not use, do not remove. */ void (*deprecated) (void *handle, int key); + + /* Change the dimension of the physical screen to one that can + display the vcons with the size of WIDTH * HEIGHT and clear the + old screen. If the physical screen already has the right + resolution do nothing. This function is always followed by a + write that covers the whole new screen. */ + error_t (*set_dimension) (void *handle, int width, int height); }; #endif /* _DISPLAY_H_ */ |