1 |
|
2003-08-11 Marco Gerards <metgerards@student.han.nl> |
2 |
|
|
3 |
|
* console.c (cons_vcons_set_dimension): New function. |
4 |
|
* display.h (display_ops): New interface set_dimension. |
5 |
|
* ncursesw.c (ncursesw_set_dimension): New function. |
6 |
|
(ncursesw_displ): Add ncursesw_set_dimension. |
7 |
|
(ncurses_lock): Make variable static. |
8 |
|
(current_width): New variable. |
9 |
|
(current_height): Likewise. |
10 |
|
(cursor_state): Likewise. |
11 |
|
(cursor_hidden): Likewise. |
12 |
|
(driver_ncursesw_ops): Added ncursesw_set_dimension. |
13 |
|
* vga.c (current_width): New variable. |
14 |
|
(current_height): Likewise. |
15 |
|
(vga_display_set_cursor_status): If the cursor is outside the |
16 |
|
screen, don't change the visibility. |
17 |
|
(vga_display_set_cursor_pos): Don't set the cursor outside the |
18 |
|
physical screen. Update cursor_hidden and hide/unhide |
19 |
|
to match cursor_hidden. Function moved to above |
20 |
|
vga_display_set_cursor_status. |
21 |
|
(vga_display_scroll): Report an error when scrolling is not |
22 |
|
possible. |
23 |
|
(vga_display_clear): Recalculate cols, rows and length. |
24 |
|
(vga_display_write): Make it wrap around the edge. |
25 |
|
(vga_set_dimension): New function. |
26 |
|
(vga_disp_ops): Added vga_set_dimension. |
27 |
|
|
28 |
|
* ncursesw.c (conspad): New variable. |
29 |
|
(padx): Likewise. |
30 |
|
(pady): Likewise. |
31 |
|
(autoscroll): Likewise. |
32 |
|
(refresh_screen): new function. |
33 |
|
(input_loop): Use conspad instead of (the default) stdscr. |
34 |
|
Call console_exit instead of exiting here. Add keybindings |
35 |
|
'j, 'k', 'l' and 'i' to scroll the console, add keybinding 'a' |
36 |
|
to switch autoscroll. |
37 |
|
(mvwputsn): Use conspad instead of (the default) stdscr. |
38 |
|
(ncursesw_scroll): Likewise. |
39 |
|
(ncursesw_write): Likewise. |
40 |
|
(ncursesw_driver_start): Likewise. Initialize conspad. |
41 |
|
(ncursesw_update): Call refresh_screen to refresh the console. |
42 |
|
(ncursesw_set_cursor_pos): Use conspad instead of (the default) |
43 |
|
stdscr. Make the console autoscroll. |
44 |
|
|
45 |
|
* ncursesw.c (ncursesw_driver_start): Remove endwin call at |
46 |
|
the end of the function. |
47 |
|
|
48 |
|
* ncursesw.c (ncursesw_set_cursor_status): If the status can |
49 |
|
not be set, use another status that can sanely be used instead |
50 |
|
of the unavailable status. |
51 |
|
|
52 |
2003-07-14 Marco Gerards <metgerards@student.han.nl> |
2003-07-14 Marco Gerards <metgerards@student.han.nl> |
53 |
|
|
54 |
* vga.c: New global variable vga_display_max_glyphs. |
* vga.c: New global variable vga_display_max_glyphs. |