PDA

View Full Version : Ncurses with C++


ankursethi
June 11th, 2007, 08:29 AM
Any pointers to tutorials that explain using Ncurses with C++? A Google search turns up nothing much because it truncates the "++" resulting in a search for "ncurses c" instead of "ncurses c++". Most of the documentation seems to be for C (I wouldn't mind using C, though).

Another question : is it possible to get full screen mode with Ncurses, instead of running in the Gnome terminal?

-Rick-
June 11th, 2007, 11:13 AM
Just use it like you would with C, afterall C++ is mostly compatible with C. If you want to use ncurses in 'full screen' you need to start the application outside X (press ctrl+alt+fN to login to a terminal outside X).

pmasiar
June 11th, 2007, 11:17 AM
Not sure what you did to google, but for me it *did not* stripped ++ from C:

http://www.google.com/search?q=ncurses+C%2B%2B

danhm
June 11th, 2007, 11:29 AM
I found three guides that may be useful:

http://www.writeka.com/ed/ncurses_library.html
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
http://invisible-island.net/ncurses/ncurses-intro.html

ankursethi
June 11th, 2007, 12:24 PM
Okay, thanks a lot everybody. But can somebody tell me about the fullscreen thingy? It's been bothering me because I intend my app to be full screen. Isn't there a way to make the GNOME Terminal fullscreen just temporarily? Or is it possible, through code, to launch the app under a different virtual terminal outside of X?

danhm
June 11th, 2007, 01:40 PM
Click View, then unclick "show menu bar", and then hit full screen. F11 will toggle full screen if you need it to be a window again.

ankursethi
June 12th, 2007, 02:37 AM
Well, that's possible, but I want my program to run in fullscreen mode by default. Isn't it possible to just launch it outside of X on another virtual terminal?