Problem with hscurses

16 Sep
2008
16 Sep
'08
11:31 a.m.
the getCh funtion is supposed to return an interpreted Key with values like KeyChar c, KeyReturn, KeyBackspace, etc. but in fact, it only ever returns KeyChar c values ! am I doing anything wrong ? Here's an example program : module Main where import UI.HSCurses.Curses import Text.Printf import System.IO main = do hSetBuffering stdout NoBuffering withCurses test1 withCurses f = do initScr echo False cBreak True res <- f endWin return res test1 = do c <- getCh printf "Touche : %s\r\n" (show c) test1
6094
Age (days ago)
6095
Last active (days ago)
1 comments
1 participants
participants (1)
-
david48