=== modified file 'demo.c' --- demo.c 2011-03-23 22:17:25 +0000 +++ demo.c 2009-11-27 15:07:05 +0000 @@ -30,7 +30,7 @@ } } - tk = termkey_new(0, TERMKEY_FLAG_SPACESYMBOL); + tk = termkey_new(0, 0); if(!tk) { fprintf(stderr, "Cannot allocate termkey instance\n"); === modified file 'termkey.c' --- termkey.c 2011-03-23 22:17:25 +0000 +++ termkey.c 2009-11-27 15:07:05 +0000 @@ -447,7 +447,7 @@ key->type = TERMKEY_TYPE_KEYSYM; } } - else if(codepoint == 0x20 && (tk->flags & TERMKEY_FLAG_SPACESYMBOL)) { + else if(codepoint == 0x20 && !(tk->flags & TERMKEY_FLAG_NOINTERPRET)) { // ASCII space key->type = TERMKEY_TYPE_KEYSYM; key->code.sym = TERMKEY_SYM_SPACE; === modified file 'termkey.h.in' --- termkey.h.in 2011-03-23 22:17:25 +0000 +++ termkey.h.in 2009-11-27 15:07:05 +0000 @@ -133,12 +133,11 @@ typedef struct _TermKey TermKey; enum { - TERMKEY_FLAG_NOINTERPRET = 1 << 0, // Do not interpret C0//DEL codes if possible + TERMKEY_FLAG_NOINTERPRET = 1 << 0, // Do not interpret C0//G1 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); === modified file 'termkey_new.3' --- termkey_new.3 2011-03-23 22:17:25 +0000 +++ termkey_new.3 2009-07-15 19:40:44 +0000 @@ -38,9 +38,6 @@ Even if the terminal file descriptor \fIfd\fP represents a .SM TTY device, do not call the \fBtcsetattr\fP() \fBtermios\fP function on it to set it to canonical input mode. -.TP -.B TERMKEY_FLAG_SPACESYMBOL -Report space as being a symbolic key rather than a Unicode codepoint. .PP When the constructor is invoked, it attempts to detect if the current locale is UTF-8 aware or not, and sets either the \fBTERMKEY_FLAG_UTF8\fP or \fBTERMKEY_FLAG_RAW\fP flag. One of these two bits will always be in effect. The current flags in effect can be obtained by \fBtermkey_get_flags\fP(). .SH VERSION CHECK MACRO