demo.c needs to enable CTRLC flag to shut down mouse mode on exit
This commit is contained in:
parent
03371bdd04
commit
e90d8f45d7
2
demo.c
2
demo.c
|
@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tk = termkey_new(0, TERMKEY_FLAG_SPACESYMBOL);
|
tk = termkey_new(0, TERMKEY_FLAG_SPACESYMBOL|TERMKEY_FLAG_CTRLC);
|
||||||
|
|
||||||
if(!tk) {
|
if(!tk) {
|
||||||
fprintf(stderr, "Cannot allocate termkey instance\n");
|
fprintf(stderr, "Cannot allocate termkey instance\n");
|
||||||
|
|
Loading…
Reference in New Issue