Miscellaneous > Programming & Networking

C++ Functions

(1/4) > >>

Kintaro:
Where can I get some more functions for C++ rather then the ones i know which are cout and cin.

Basicly i want to know how to do things like locate text in certain parts of the creen, change text color, ect, ect... where?

voidmain:
Assuming you are in UNIX/Linux and assuming you do not want to do this graphically but in a shell/terminal then you probably want to look at the "ncurses" libraries.  And there is a reason for the name "curses", you'll find out.    

Here is a google search for "ncurses c++":
http://www.google.com/search?hl=en&ie=ISO-8859-1&q=ncurses+c%2B%2B

[ August 16, 2002: Message edited by: VoidMain ]

Kintaro:
ncurses isnt quite what im looking for...

voidmain:
Hmmm, well ncurses does exactly what you were asking for. You can locate your cursor on the screen, position it anywhere on the screen, change color of text etc.  Again, that is for terminals (virtual terminals, xterm, kterm, etc). It's what gives programs like RedHat's text based "setup" program or the non-X mode of linuxconf the ability to do color menuing in a terminal/shell. I used to do a lot of curses based programming on RS/6000s to give dialin users (not internet/ppp) a menuing system for running applications and downloading data.  But that was 7 or 8 years ago so modems were only capable of aroun 14.4 at the time and since curses is text based menuing it was very fast.

What are your other requirements?  Did you really want to do this within a graphical X app?  If so, ncurses is definitely not the library. Or did you mean something like the svgalib, which allows you to do graphics (in graphics modes supported by your video card, not text graphics) outside of X?

If you want to do this in X then there are hundreds of libraries in which this can be accomplished including the X libraries themselves (although you would likely want to use a higher level graphics library).

[ August 16, 2002: Message edited by: VoidMain ]

Kintaro:
I am new too C++, i read the manpage and it was not very explainatory.

Navigation

[0] Message Index

[#] Next page

Go to full version