=== modified file 'termkey.c' --- termkey.c 2012-01-26 10:07:23 +0000 +++ termkey.c 2012-01-26 10:06:05 +0000 @@ -217,8 +217,6 @@ if(!tk) return NULL; - tk->fd = fd; - if(!(flags & (TERMKEY_FLAG_RAW|TERMKEY_FLAG_UTF8))) { int locale_is_utf8 = 0; char *e; @@ -238,7 +236,11 @@ flags |= TERMKEY_FLAG_RAW; } - termkey_set_flags(tk, flags); + tk->fd = fd; + tk->flags = flags; + + if(flags & TERMKEY_FLAG_SPACESYMBOL) + tk->canonflags |= TERMKEY_CANON_SPACESYMBOL; tk->buffer = malloc(tk->buffsize); if(!tk->buffer)