Working with Curses - Raspberry Pi Forums
so i've been playing around curses create simple text menu when first log in. far has been working i've hit snag. wanted have pianobar (a simple text internet radio player) available in menu, doesn't work. can type thing in, ignores return presses nothing selected. formats screen oddly. believe happening curses isn't letting go of control wondering how go having curses let go when open program , grab when close.
source code can viewed on here
https://gist.github.com/2482046
source code can viewed on here
https://gist.github.com/2482046
hi,
need leave cooked mode before starting program , return once program has finished.
see section 14.2 (temporarily leaving curses mode) of http://tldp.org/howto/ncurses-programmi ... /misc.html. it's in c, same idea in python.
need leave cooked mode before starting program , return once program has finished.
see section 14.2 (temporarily leaving curses mode) of http://tldp.org/howto/ncurses-programmi ... /misc.html. it's in c, same idea in python.
raspberrypi
Comments
Post a Comment