Miscellaneous > Programming & Networking

C++ Functions

<< < (2/4) > >>

voidmain:
Well give me an example of what you wish to accomplishand then I can help you out further.

Examples:
- I need to do text/terminal based menus in C++
-- I need to be able to position the cursor and draw text
- I want to do text/ascii based animations in C++
- I need to do X based menus in C++
- I want to create an X based game in C++
etc..

Also, there is a higher level ncurses based library and programs that come with most Linux distros called "dialog" that I used to use for creating menus in scripts (much like Norton's Batch Enhancer for DOS "BE").  I believe you can call the dialog functions from your C/C++ programs using those libraries (#include <dialog.h> ;) . See "man dialog" for the command line dialog utility for use in scripts. There are samples in /usr/share/doc/dialog*/samples directory. And if it looks like something that you would like to do within your C++ code I can get you some programming references for using the library...

At any rate, I need more input as I have not yet mastered the ability to read minds...

Kintaro:
What i need to accomplish is basicly what locate does in basic (which is a shit language)

for example:

--- Code: ---
--- End code ---
that would put an x at row 13 and coulumn 2.

Just things like that and:


--- Code: ---
--- End code ---

that would print "BLAH" to the standard output in bright white....

voidmain:
ncurses provides very similar functions (much like the CRT unit in TP).  I don't believe there are any built-in default C++ functions for this. See this HOWTO:

http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/

voidmain:
ncurses provides very similar functions (much like the CRT unit in TP).  I don't believe there are any built-in default C++ functions for this. See this HOWTO:

http://www.tldp.org/HOWTO/NCURSES-Programming-HOWTO/


--- Code: ---
--- End code ---

or


--- Code: ---
--- End code ---

or a C example:

--- Code: ---
--- End code ---

In RedHat if you want to compile/run the above you need to make sure you have the "ncurses-devel" RPM installed and to compile:

gcc -lncurses -o myncprog myncprog.c

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

Kintaro:
Cool it works, i wrote my own liabary simlar to curses in basic... see my semo, which is "Microsoft .NET CLONE" its funny, and well coded for such a crap language.

here:
x11.150m.com/dotnet.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version