inv2004

Results 49 comments of inv2004

`getKeys` example: ```nim while true: for key in getKeys(): case key of Key.None: discard of Key.Escape, Key.Q: exitProc() else: tb.write(8, 4, ' '.repeat(31)) tb.write(2, 4, resetStyle, "Key pressed: ", fgGreen,...

`getKey` with buffer example: Not sure if display should be in the inner while loop or not ```nim while true: var key = getKey() while key != Key.None: case key...

Don't you think the double while loop looks not obvious and even ugly? Also, it is just iterator over while simulation.

The only good, in my opinion, solution to avoid the cpu usage and to avoid sleep without any delays is: ```nim while true: let key = getKeyWithTimeout(1000) case key of...

I am working on getKeyWithTimeout When it is ready - getKeys can be rolled back The main challenge is to avoid any addition buffers and to make parser for long...

Done here https://github.com/johnnovak/illwill/pull/47 - [x] Linux stdin parser - [x] some small tests for the parser - [x] Windows did not work correct at all even before the change =>...

Here is an iterator for someone who wants pretty monotonic ticks without sleep: ```nim iterator keyEachSec(): Key = var timeout = 1000 while true: let a = getMonoTime().ticks let k...

I see special conversion for the type in code, it looks good, but, unfortuantely, in Nim it is still array And looks like there are two problems around it: json...

fixed in devel release of nim

should be closed here https://github.com/inv2004/ttop/commit/f0bc9c5663ca7aff679127d3340c77d0133ebe34