Re: [racket-users] handling terminal input per character

2016-10-30 Thread Tony Garnock-Jones
On 10/30/2016 10:54 AM, Ken MacKenzie wrote: > So what is the best way to read keypress or character by character > input in racket. For now dealing with a CLI/terminal interface to > keep it simple as I work to test and refine my methods. Try the "ansi" package, https://pkgn.racket-lang.org/pack

Re: [racket-users] handling terminal input per character

2016-10-30 Thread Ken MacKenzie
No this is reminding me that I need to think of my intended implementations and this is not a worth while thing to implement at the terminal level and also a case of prematurely attempting to optimize before dealing with the solution. Intended implementation is I see a large part of this living

Re: [racket-users] handling terminal input per character

2016-10-30 Thread 'John Clements' via Racket Users
> On Oct 30, 2016, at 07:54, Ken MacKenzie wrote: > > So a curiosity question. Right now I am reading in a line of terminal input > from the user and handling it. I am thinking of switching the program to > handle the input character by character, and just wondering how to do that > but als

Re: [racket-users] handling terminal input per character

2016-10-30 Thread Laurent
Not too sure about your exact needs but: - if you want to modify a shell terminal, hopefully someone else can help you (maybe a keystroke can trigger a command that interacts with a racket program running in the background?) - if you want a Racket terminal (to evaluate Racket expressions) or just

[racket-users] handling terminal input per character

2016-10-30 Thread Ken MacKenzie
So a curiosity question. Right now I am reading in a line of terminal input from the user and handling it. I am thinking of switching the program to handle the input character by character, and just wondering how to do that but also have it seem to the user that the program is waiting for them