Interpret space as Unicode by default, add a flag to make it symbolic instead

This commit is contained in:
Paul LeoNerd Evans
2011-03-23 22:17:25 +00:00
parent ba0c32e8d8
commit a71f68dd57
4 changed files with 7 additions and 3 deletions

View File

@@ -133,11 +133,12 @@ typedef struct {
typedef struct _TermKey TermKey;
enum {
TERMKEY_FLAG_NOINTERPRET = 1 << 0, // Do not interpret C0//G1 codes if possible
TERMKEY_FLAG_NOINTERPRET = 1 << 0, // Do not interpret C0//DEL codes if possible
TERMKEY_FLAG_CONVERTKP = 1 << 1, // Convert KP codes to regular keypresses
TERMKEY_FLAG_RAW = 1 << 2, // Input is raw bytes, not UTF-8
TERMKEY_FLAG_UTF8 = 1 << 3, // Input is definitely UTF-8
TERMKEY_FLAG_NOTERMIOS = 1 << 4, // Do not make initial termios calls on construction
TERMKEY_FLAG_SPACESYMBOL = 1 << 5, // Space is symbolic rather than Unicode
};
void termkey_check_version(int major, int minor);