diff options
Diffstat (limited to 'sys/sys/terminal.h')
-rw-r--r-- | sys/sys/terminal.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/sys/terminal.h b/sys/sys/terminal.h index 146b9acdd084..e76190b500a5 100644 --- a/sys/sys/terminal.h +++ b/sys/sys/terminal.h @@ -62,15 +62,14 @@ struct tty; * * Bits Meaning * 0-20: Character value - * 21: Unused - * 22-25: Bold, underline, blink, reverse + * 21-25: Bold, underline, blink, reverse, right part of CJK fullwidth character * 26-28: Foreground color * 29-31: Background color */ typedef uint32_t term_char_t; #define TCHAR_CHARACTER(c) ((c) & 0x1fffff) -#define TCHAR_FORMAT(c) (((c) >> 22) & 0xf) +#define TCHAR_FORMAT(c) (((c) >> 21) & 0x1f) #define TCHAR_FGCOLOR(c) (((c) >> 26) & 0x7) #define TCHAR_BGCOLOR(c) ((c) >> 29) |