[Haskell-cafe] Trapping getChar before echo
Neil Mitchell
ndmitchell at gmail.com
Sun Jan 31 05:05:26 EST 2010
Hi Mark,
http://haskell.org/hoogle/?hoogle=set+echo
Thanks, Neil
On Sun, Jan 31, 2010 at 8:47 AM, Mark Spezzano
<mark.spezzano at chariot.net.au> wrote:
> Hi,
>
> Is there any way of trapping keystrokes in Haskell, modifying them, and then echoing?
>
> Basically I want to give the user a prompt like:
>>
>
> and then have whatever they type appear in UPPERCASE regardless of whether caps lock was on or not.
>
> By default Haskell seems to echo characters in whatever case they were typed. I want to sneak in a toUpper in before the Chars get echoed.
>
> Thanks
>
> Mark Spezzano
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
More information about the Haskell-Cafe
mailing list