I would like to write a program that whenever a character is typed into
a TextView, the character is echoed to the console. Here is my attempt:
module Main where
main :: IO()
main = do
textview <- textViewNew
onInsertAtCursor textview putStrLn
window <- windowNew
set window [containerBorderWidth := 10, containerChild := textview]
onDestroy window mainQuit
Unfortunately,this program does not work. Any ideas why?
Get latest updates about Open Source Projects, Conferences and News.