summaryrefslogtreecommitdiff
path: root/hurd/console.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2002-09-16 02:48:56 +0000
committerMarcus Brinkmann <marcus@gnu.org>2002-09-16 02:48:56 +0000
commit43e87b8a95aa36ab5a7f78de3034e081bac2e8ad (patch)
tree8620e769fd58379a8dfa34529aa8688cd9356c60 /hurd/console.h
parenta618f28ce12e97bfffea729bdf421c38a236f9ca (diff)
hurd/
2002-09-16 Marcus Brinkmann <marcus@gnu.org> * console.h (conchar_attr_t): Add bits for italic and bold text attributes. console/ 2002-09-16 Marcus Brinkmann <marcus@gnu.org> * hurd.ti: Add capabilities <sitm>, <ritm>, <gsbom>, <grbom>. * display.c (handle_esc_bracket_m): Add support for italic. (display_output_one): Add new capabilities PU1 and PU2 to toggle bold mode. Reset PARSE->state on most escape sequences. * console.c (parse_attributes): Rename old bold attribute to bright. Add support for italic and bold.
Diffstat (limited to 'hurd/console.h')
-rw-r--r--hurd/console.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/hurd/console.h b/hurd/console.h
index bf15e357..09fd088f 100644
--- a/hurd/console.h
+++ b/hurd/console.h
@@ -31,17 +31,25 @@ typedef enum
typedef struct
{
+ /* The intensity is traditionally a color attribute. */
#define CONS_ATTR_INTENSITY_NORMAL 000000000000
#define CONS_ATTR_INTENSITY_BOLD 000000000001
#define CONS_ATTR_INTENSITY_DIM 000000000002
uint32_t intensity : 2;
+
uint32_t underlined : 1;
uint32_t blinking : 1;
uint32_t reversed : 1;
uint32_t concealed : 1;
+
+ /* Color attributes. */
uint32_t bgcol : 3;
uint32_t fgcol : 3;
-} conchar_attr_t;
+
+ /* Font attributes. */
+ uint32_t italic : 1;
+ uint32_t bold : 1;
+} conchar_attr_t;
typedef struct
{