aboutsummaryrefslogtreecommitdiff
path: root/console
Commit message (Collapse)AuthorAgeFilesLines
...
* 2002-06-12 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-125-248/+601
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * console.c: Include <argz.h>. Do not include "console.h", but inline it. New macro DEFAULT_ENCODING. (struct cons): De-const-ify member ENCODING. (mycons, cons): Remove global variables. (vcons_lookup): Use default encoding if CONS->encoding is not set. (new_node): Access CONS through VCONS. Adjust size of display node. (netfs_attempt_read): Truncate length to read before reading. (netfs_S_io_map): New function. (options): New global variable. (parse_opt): New function. (netfs_append_args): New function. (main): New variable CONS to hold console structure. Rediddle initialization to allocate memory for it, parse arguments, and create the root node in correct order. Also call display_init. * console.h: Rewritten with new meaning. It now describes the public interface of the console. * display.c: Include <assert.h>, <error.h>, <hurd.h>, <hurd/pager.h> and "console.h". (struct screen): Removed. (struct cursor): Remove members X, Y and status. (struct user_pager_info): New struct. (struct display): Remove member SCREEN, add new members USER, UPI, MEMOBJ and MEMOBJ_SIZE. (pager_bucket): New global variable. (display_get_filemap): New function. (pager_clear_user_data): Likewise. (pager_read_page): Likewise. (pager_write_page): Likewise. (pager_unlock_page): Likewise. (pager_report_extent): Likewise. (pager_dropweak): Likewise. (service_paging_requests): Likewise. (screen_init): Renamed to ... (user_create): ... this new function and changed to allocate memory object and map it for USER data in display structure. (screen_deinit): Renamed to ... (user_destroy): ... this new function and rewrote it. (MATRIX_POS): New macro. (screen_fill): Take DISPLAY argument instead SCREEN. Use MATRIX_POS. (screen_scroll_up): Likewise. (screen_scroll_down): Likewise. (screen_scroll_left): Likewise. (screen_scroll_right): Likewise. (handle_esc_bracket_hl): Take DISPLAY argument instead CURSOR. (handle_esc_bracket): Access screen and cursor fields correctly. (display_output_one): Likewise. (display_getsize): Likewise. (display_init): New function. (display_create): New variables width, height, lines. Call user_create, not screen_init. Call user_destroy, not screen_deinit. (display_destroy): Call user_destroy, not screen_deinit. (display_read): Reimplement using memory mapping. * display.h: New prototypes for display_init and display_get_filemap.
* 2002-06-09 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-083-17/+67
| | | | | | | | | | | | | | | | | * display.c (struct cursor): Change type of all members from int to u_int32_t. (screen_init): Initialize SCREEN->lines with 25 instead 200 for now. (screen_fill): Bring SCREEN->current_line into the calculation of MATRIXP. (screen_scroll_up): Likewise. (screen_scroll_down): Likewise. (screen_scroll_left): Likewise. (screen_scroll_right): Likewise. (display_output_one): Beautify code a bit. (display_read): Add metadata to beginning of file. * console.c (new_node): Increase size of display node to include metadata.
* 2002-06-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-058-154/+1983
| | | | | | | | | | | | | * input.h: New file. * input.c: Likewise. * console.h: Likewise. * console.c: Likewise. * display.h: New development version. * display.c: Likewise. * Makefile (SRCS): Replace with files for new console server. (LCLHDRS): Likewise. (HURDLIBS): Likewise. (OBJS): Likewise.
* 2002-06-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-056-7/+12
| | | | | | | * main.c: Include "vcons.h" instead "console.h". * focus.c: Likewise. * Makefile (LCLHDRS): Rename console.h to vcons.h. (SRCS): Rename console.c to vcons.c.
* 2002-06-05 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-055-4/+12
| | | | | | | | * input.h: Renamed to ... * input-drv.h: ... this. * focus.c: Include "input-drv.h" instead "input.h". * console.c: Likewise. * Makefile (LCLHDRS): Rename input.h to input-drv.h.
* 2002-06-04 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-043-0/+864
| | | | | * display.h: New file. * display.c: Likewise.
* 2002-06-04 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-045-3/+11
| | | | | | | | * display.h: Renamed to ... * display-drv.h: ... this. * Makefile (LCLHDRS): Rename display.h to display-drv.h. * console.c: Include "display-drv.h" instead "display.h". * vga-display.c: Likewise.
* 2002-06-03 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-032-2/+7
| | | | * console.c (vcons_release): Fix last change.
* 2002-06-02 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2002-06-022-6/+14
| | | | | | * console.c (vcons_lookup): Correct nesting. (vcons_release): Negate if condition. Delete VCONS_LIST in CONS with last virtual console.
* *** empty log message ***Neal H. Walfield2002-03-261-0/+4
|
* 2002-03-23 James A. Morrison <ja2morri@uwaterloo.ca>Neal H. Walfield2002-03-261-4/+1
| | | | * main.c (main): Use error, not fprintf and exit.
* fix botched entryRoland McGrath2002-03-191-3/+3
|
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-191-0/+1
| | | | | * mutations.h (TIOCTL_IMPORTS): New macro. * priv.h: Protect from multiple inclusion.
* .Roland McGrath2002-03-181-0/+1
|
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-181-1/+1
| | | | | * vga.c (vga_init): io_perm -> ioperm. (vga_deinit): Likewise.
* .Roland McGrath2002-03-181-0/+21
|
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-183-7/+10
| | | | | | | * dynafont.c: Include <string.h>. * focus.c: Likewise. * vga.c: Likewise. * vga-display.c: Likewise.
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-181-12/+9
| | | | | | * main.c: Include <error.h>. (main): Use `error' instead of perror + exit. (console_mode, console_owner, console_group): Use *_t, not int.
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-181-0/+5
| | | | | * console/mutations.h (TIOCTL_IMPORTS): New macro. * priv.h: Protect from multiple inclusion.
* 2002-03-17 Roland McGrath <roland@frob.com>Roland McGrath2002-03-181-1/+2
| | | | | | | | * vga.c (vga_init): io_perm -> ioperm. * dynafont.c: Include <string.h>. * focus.c: Likewise. * vga.c: Likewise. * vga-display.c: Likewise.
* Initial check in of some code under development.Marcus Brinkmann2002-03-1718-0/+4310