johnnovak / illwill

A curses inspired simple cross-platform console library for Nim
Do What The F*ck You Want To Public License
398 stars 27 forks source link

patch the getKey() proc to support blocking mode #5

Closed ghost closed 4 years ago

ghost commented 4 years ago

hi @johnnovak , the blocking mode getKey() costs less cpu, maybe it's a better choice than the async way in some cases, so i patch it.

enthus1ast commented 3 years ago

too bad that this is not implemented yet :|

ghost commented 2 years ago

@johnnovak @enthus1ast i am stupid, i read the source code of getKey, i find you use select to get keyboard's input, it's fine, so this pull request is needless.