Skip to content

Commit

Permalink
temporarily locked illwill version due to build failure + bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hitblast committed Mar 18, 2024
1 parent 9682149 commit 50ba24d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/nimip.nim
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ proc run*(): Future[void] {.async.} =

# Finally, display the entire thing.
# This also includes checking for keypress events in order for the user to quit the interface.
# An exitProc() procedure has been defined to handle the cleanup and exit process.
# An exitProc() procedure has also been defined to handle the cleanup process.
proc exitProc() {.noconv.} =
illwillDeinit()
showCursor()
Expand All @@ -91,12 +91,13 @@ proc run*(): Future[void] {.async.} =
hideCursor()

while true:
for key in getKeys():
case key
of Key.Escape, Key.Q: exitProc()
else: discard

tb.display()

var key = getKey()
case key
of Key.Escape, Key.Q: exitProc()
else: discard

sleep(20)


Expand Down

0 comments on commit 50ba24d

Please sign in to comment.