Re: [racket-users] Assigning actions to any key on a terminal

2017-12-09 Thread Rickard Andersson
> Hi, OK, I'll look for the console API, or installing Linux/BSD on a 
> virtual machine, or even go experiment with racket/gui, since it's just 
> a little project mostly for fun. :)
> 
> Greetings
> Cleverson
> 

`racket/gui` is amazing and works super well on Windows indeed, so I
would definitely recommend it even for small stuff. Windows doesn't have
a great CLI experience anyway, so running things in a GUI makes more
sense.

-- 
With regards,
Rickard Andersson

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Assigning actions to any key on a terminal

2017-11-28 Thread Cleverson Casarin Uliana
Hi, OK, I'll look for the console API, or installing Linux/BSD on a 
virtual machine, or even go experiment with racket/gui, since it's just 
a little project mostly for fun. :)


Greetings
Cleverson

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Assigning actions to any key on a terminal

2017-11-28 Thread Neil Van Dyke

Cleverson Casarin Uliana wrote on 11/28/2017 05:12 PM:
Hello, I'd like a library to detect any key press on a terminal (from 
single characters to key combinations), so I can perform diverse 
actions when one is pressed. I tried the charterm package, but it 
seems not compatible with the Windows standard console, since it 
reports it cannot find /dev/tty on startuup, or maybe I don't know how 
to make it work?


Sorry, the `charterm` package only works when running on Unix-like 
systems (GNU/Linux, a BSD-derived Unix, reportedly Mac OS X), not 
Windows.  I should be clear in the docs that it doesn't work on Windows.


http://www.neilvandyke.org/racket/charterm/

For running on Windows, and responding to a Windows text command window, 
you don't want `charterm`, and might need to do something with the Win32 
console API (IIRC).  Maybe you can do this with the Racket FFI.


Or, in the less common scenario of running on Windows, and dealing with 
a terminal plugged into a serial port or other device, you'd probably 
need a Win32 serial API, or API for whatever funky terminal interface 
you're using.


(Ideally, most CS people will normally run GNU/Linux or a BSD, for 
promoting technical/engineering freedom and open science and such. But 
sometimes we have to work on other platforms.)


--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.