1 |
|
2002-06-12 Marcus Brinkmann <marcus@gnu.org> |
2 |
|
|
3 |
|
* console.c: Include <argz.h>. Do not include "console.h", but |
4 |
|
inline it. New macro DEFAULT_ENCODING. |
5 |
|
(struct cons): De-const-ify member ENCODING. |
6 |
|
(mycons, cons): Remove global variables. |
7 |
|
(vcons_lookup): Use default encoding if CONS->encoding is not set. |
8 |
|
(new_node): Access CONS through VCONS. Adjust size of display |
9 |
|
node. |
10 |
|
(netfs_attempt_read): Truncate length to read before reading. |
11 |
|
(netfs_S_io_map): New function. |
12 |
|
(options): New global variable. |
13 |
|
(parse_opt): New function. |
14 |
|
(netfs_append_args): New function. |
15 |
|
(main): New variable CONS to hold console structure. Rediddle |
16 |
|
initialization to allocate memory for it, parse arguments, and |
17 |
|
create the root node in correct order. Also call display_init. |
18 |
|
* console.h: Rewritten with new meaning. It now describes the |
19 |
|
public interface of the console. |
20 |
|
* display.c: Include <assert.h>, <error.h>, <hurd.h>, |
21 |
|
<hurd/pager.h> and "console.h". |
22 |
|
(struct screen): Removed. |
23 |
|
(struct cursor): Remove members X, Y and status. |
24 |
|
(struct user_pager_info): New struct. |
25 |
|
(struct display): Remove member SCREEN, add new members USER, UPI, |
26 |
|
MEMOBJ and MEMOBJ_SIZE. |
27 |
|
(pager_bucket): New global variable. |
28 |
|
(display_get_filemap): New function. |
29 |
|
(pager_clear_user_data): Likewise. |
30 |
|
(pager_read_page): Likewise. |
31 |
|
(pager_write_page): Likewise. |
32 |
|
(pager_unlock_page): Likewise. |
33 |
|
(pager_report_extent): Likewise. |
34 |
|
(pager_dropweak): Likewise. |
35 |
|
(service_paging_requests): Likewise. |
36 |
|
(screen_init): Renamed to ... |
37 |
|
(user_create): ... this new function and changed to allocate |
38 |
|
memory object and map it for USER data in display structure. |
39 |
|
(screen_deinit): Renamed to ... |
40 |
|
(user_destroy): ... this new function and rewrote it. |
41 |
|
(MATRIX_POS): New macro. |
42 |
|
(screen_fill): Take DISPLAY argument instead SCREEN. Use |
43 |
|
MATRIX_POS. |
44 |
|
(screen_scroll_up): Likewise. |
45 |
|
(screen_scroll_down): Likewise. |
46 |
|
(screen_scroll_left): Likewise. |
47 |
|
(screen_scroll_right): Likewise. |
48 |
|
(handle_esc_bracket_hl): Take DISPLAY argument instead CURSOR. |
49 |
|
(handle_esc_bracket): Access screen and cursor fields correctly. |
50 |
|
(display_output_one): Likewise. |
51 |
|
(display_getsize): Likewise. |
52 |
|
(display_init): New function. |
53 |
|
(display_create): New variables width, height, lines. Call |
54 |
|
user_create, not screen_init. Call user_destroy, not |
55 |
|
screen_deinit. |
56 |
|
(display_destroy): Call user_destroy, not |
57 |
|
screen_deinit. |
58 |
|
(display_read): Reimplement using memory mapping. |
59 |
|
* display.h: New prototypes for display_init and display_get_filemap. |
60 |
|
|
61 |
2002-06-09 Marcus Brinkmann <marcus@gnu.org> |
2002-06-09 Marcus Brinkmann <marcus@gnu.org> |
62 |
|
|
63 |
* display.c (struct cursor): Change type of all members from int |
* display.c (struct cursor): Change type of all members from int |