From 5835b9b309a0dae37c8545068c30fa2043369356 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 17 Jun 2002 01:42:06 +0000 Subject: 2002-06-17 Marcus Brinkmann * console.c (new_node): Adjust size of display node. * console.h: Add macros for color names. Add macros for intensity names. Add new types conchar_t and conchar_attr_t, which represent a console matrix cell and the attribute of one such cell, resp. Add macros for keycodes. (struct cons_display): Change type of _matrix member to conchar_t. * display.c (struct attr): Rewrite, usiong cons_attr_t to hold the attributes. (handle_escape_bracket_m): Use new members of ATTR. (display_flush_filechange): Send notification for changed matrix before the notification for new cur_line. Fix types in length calculation. (conchar_memset): New function. (user_create): Accept CHR and ATTR arguments. Fix calculation of NPAGES. Use conchar_memset instead of wmemset. (screen_fill): Fix type of ATTR argument. Use conchar_memset instead of wmemset. (screen_shift_left): Fix type of ATTR argument. Set attribute of empty cells. Fix length calculation. (screen_shift_right): Likewise. (handle_escape_bracket): Set default parameter for HUP. Be more ECMA-48 conform. (display_output_one): Fix arguments in screen_fill invocation. Set attribute for character output. Add from ECMA-48. (display_create): Use 50 lines for now. Set default colors, and add new arguments to user_create invocation. CVSi: ---------------------------------------------------------------------- --- console/console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'console/console.c') diff --git a/console/console.c b/console/console.c index 7d12db9f..8500c84c 100644 --- a/console/console.c +++ b/console/console.c @@ -301,7 +301,8 @@ new_node (struct node **np, vcons_t vcons, vcons_node_type type) (*np)->nn_stat.st_ino = (vcons->id << 2) + 2; (*np)->nn_stat.st_mode |= S_IFREG; (*np)->nn_stat.st_mode &= ~(S_IXUSR | S_IXGRP | S_IXOTH); - (*np)->nn_stat.st_size = 2011 * sizeof (wchar_t); /* XXX */ + (*np)->nn_stat.st_size = 80*50 * (sizeof (wchar_t) + 4) + + 11 * 4; /* XXX */ break; case VCONS_NODE_INPUT: (*np)->nn_stat.st_ino = (vcons->id << 2) + 3; -- cgit v1.2.3