Hello,
another weekend with a free time, so I'm playing around with Nim. I decided
I'll try to write a little terminal plaything but after having a good luck with
the fact that _terminal_ implements almost everything I wanted I got stuck on
getch() — as I guessed it only picks up the alphanumeric characters. ESC or F1
or → all produce 7 when I ord() the return value.
Maybe I'm missing something? Like switching stdout to raw?
import terminal
setForegroundColor(stdout, ForegroundColor.fgRed)
setStyle(stdout, {Style.styleBlink, Style.styleBright})
var c = getch()
echo(c, ord(c))
Any pointers would be welcomed!
(Or maybe I should go directly to ncurses?)