diff options
Diffstat (limited to 'console/console.h')
-rw-r--r-- | console/console.h | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/console/console.h b/console/console.h index 27996955..08f35955 100644 --- a/console/console.h +++ b/console/console.h @@ -19,41 +19,43 @@ #ifndef _HURD_CONSOLE_H #define _HURD_CONSOLE_H -#include <sys/types.h> +#include <stdint.h> struct cons_display { #define CONS_MAGIC 0x48555244 /* Hex for "HURD". */ - u_int32_t magic; /* CONS_MAGIC, use to detect + uint32_t magic; /* CONS_MAGIC, use to detect endianess. */ #define CONS_VERSION_MAJ 0x0 #define CONS_VERSION_MAJ_SHIFT 16 #define CONS_VERSION_AGE 0x0 - u_int32_t version; /* Version of interface. Lower 16 + uint32_t version; /* Version of interface. Lower 16 bits define the age, upper 16 bits the major version. */ struct { - u_int32_t width; /* Width of screen matrix. */ - u_int32_t lines; /* Length of whole matrix. */ - u_int32_t cur_line; /* Beginning of visible area. */ - u_int32_t scr_lines;/* Number of lines in scrollback buffer + uint32_t width; /* Width of screen matrix. */ + uint32_t lines; /* Length of whole matrix. */ + uint32_t cur_line; /* Beginning of visible area. This is only + ever increased by the server, so clients + can optimize scrolling. */ + uint32_t scr_lines;/* Number of lines in scrollback buffer preceeding CUR_LINE. */ - u_int32_t height; /* Number of lines in visible area following + uint32_t height; /* Number of lines in visible area following (and including) CUR_LINE. */ - u_int32_t matrix; /* Index (in wchar_t) of the beginning of + uint32_t matrix; /* Index (in wchar_t) of the beginning of screen matrix in this structure. */ } screen; struct { - u_int32_t col; /* Current column (x-position) of cursor. */ - u_int32_t row; /* Current row (y-position) of cursor. */ + uint32_t col; /* Current column (x-position) of cursor. */ + uint32_t row; /* Current row (y-position) of cursor. */ #define CONS_CURSOR_INVISIBLE 0 #define CONS_CURSOR_NORMAL 1 #define CONS_CURSOR_VERY_VISIBLE 2 - u_int32_t status; /* Visibility status of cursor. */ + uint32_t status; /* Visibility status of cursor. */ } cursor; /* Don't use this, use ((wchar_t *) cons_display + |