summaryrefslogtreecommitdiff
path: root/hurd/console.h
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/console.h')
-rw-r--r--hurd/console.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/hurd/console.h b/hurd/console.h
index 065ed7d2..4634cc28 100644
--- a/hurd/console.h
+++ b/hurd/console.h
@@ -1,5 +1,5 @@
/* console.h -- Public interface to the console server.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002,10 Free Software Foundation, Inc.
Written by Marcus Brinkmann.
This program is free software; you can redistribute it and/or
@@ -50,7 +50,13 @@ typedef struct
uint32_t italic : 1;
uint32_t bold : 1;
} conchar_attr_t;
-
+
+/* We support double-width characters by using an extra bit to identify the
+ continuation in the character matrix. The constants below document our
+ usage of wchar_t. */
+#define CONS_WCHAR_MASK ((wchar_t) 0x401fffff)
+#define CONS_WCHAR_CONTINUED ((wchar_t) 0x40000000)
+
typedef struct
{
wchar_t chr;