Read characters from without newline

2021-08-28 Thread Zelphir Kaltstahl
Hello Guile users, I am trying to find a way to read a character from command line or REPL, without having to enter a newline, confirming the input. For example I found this for Python: https://stackoverflow.com/a/21659588 I read on https://www.gnu.org/soft

Re: Read characters from without newline

2021-08-28 Thread Chris Vine
On Sat, 28 Aug 2021 14:09:52 + Zelphir Kaltstahl wrote: > Hello Guile users, > > I am trying to find a way to read a character from command line or REPL, > without > having to enter a newline, confirming the input. > > For example I found this for Python: https://stackoverflow.com/a/2165958

Re: Read characters from without newline

2021-08-28 Thread Frank Terbeck
Mike Gran wrote: […] > There is a binding of tcsetattr in the (ncurses extra) library > in guile-ncurses, but since you just need a couple of functions, you > could wrap them in FFI, I suppose. Shameless plug: https://gitlab.com/ft/guile-termios I sort of have this ready for guix, too. But I neve

Re: Read characters from without newline

2021-08-28 Thread Tim Meehan
Second for guile-termios, I use it and like it very much (saved my bacon with a program I was writing). On Sat, Aug 28, 2021 at 3:56 PM Frank Terbeck wrote: > Mike Gran wrote: > […] > > There is a binding of tcsetattr in the (ncurses extra) library > > in guile-ncurses, but since you just need a