a library for control of terminal driver modes?

I'm looking for a library like Perl's Term-Readkey, so that I can turn on and off the echo for secure password input from a terminal. Anyone know which library I need to use for this? Iain

Iain Barnett wrote:
I'm looking for a library like Perl's Term-Readkey, so that I can turn on and off the echo for secure password input from a terminal. Anyone know which library I need to use for this?
The package ansi-terminal allows you to do various things to the terminal; I think it might include turning local echo on/off. Alternatively, there was an announcement recently about a text-mode UI package, which might do what you want. (I don't recall the name...)

On 11 Oct 2009, at 15:30, Andrew Coppin wrote:
Iain Barnett wrote:
I'm looking for a library like Perl's Term-Readkey, so that I can turn on and off the echo for secure password input from a terminal. Anyone know which library I need to use for this?
The package ansi-terminal allows you to do various things to the terminal; I think it might include turning local echo on/off. Alternatively, there was an announcement recently about a text-mode UI package, which might do what you want. (I don't recall the name...)
Thanks Iain

Yes, ansi-terminal supports this. Try:
setSGR [SetBlinkSpeed NoBlink]
(http://hackage.haskell.org/packages/archive/ansi-terminal/0.5.0/doc/html/Sys...)
Cheers,
Max
2009/10/12 Iain Barnett
On 11 Oct 2009, at 15:30, Andrew Coppin wrote:
Iain Barnett wrote:
I'm looking for a library like Perl's Term-Readkey, so that I can turn on and off the echo for secure password input from a terminal. Anyone know which library I need to use for this?
The package ansi-terminal allows you to do various things to the terminal; I think it might include turning local echo on/off. Alternatively, there was an announcement recently about a text-mode UI package, which might do what you want. (I don't recall the name...)
Thanks
Iain _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Err, I managed to completely misread your email. Sorry.
Unfortunately, ansi-terminal does NOT support disabling the echo and I
don't plan to support it. However, given that I already provide
non-ANSI features from it, patches would be happily accepted :-)
Cheers,
Max
2009/10/13 Max Bolingbroke
Yes, ansi-terminal supports this. Try:
setSGR [SetBlinkSpeed NoBlink]
(http://hackage.haskell.org/packages/archive/ansi-terminal/0.5.0/doc/html/Sys...)
Cheers, Max
2009/10/12 Iain Barnett
: On 11 Oct 2009, at 15:30, Andrew Coppin wrote:
Iain Barnett wrote:
I'm looking for a library like Perl's Term-Readkey, so that I can turn on and off the echo for secure password input from a terminal. Anyone know which library I need to use for this?
The package ansi-terminal allows you to do various things to the terminal; I think it might include turning local echo on/off. Alternatively, there was an announcement recently about a text-mode UI package, which might do what you want. (I don't recall the name...)
Thanks
Iain _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Andrew Coppin
-
Iain Barnett
-
Max Bolingbroke