changing console text in-place
Ok, weird question. What I want to do is change a line in the console window (Linux or DOS) without re-printing it on a new line. Like the status bars ( |=== | )things in YUM, for example. So, does anyone know how to do this or where to go to get info/examples?
I would like to use Python, but I also know C++. |
On linux, you could use the ncurse library wich can control caracter position in a terminal.
|
not compiling
Ok, I did a helloworld program with ncurses. Problem is that it won't compile. G++ gives "undefined reference to: xxx()" where xxx() is any ncurses function. I found this strange because the ncurses.h header is right there in my '/usr/include' directory. Here is the program:
Code:
#include <ncurses.h> Quote:
[edit[ Ok, I looked at the errors again and the problem seems to go al llittle deaper than I thought. Why is this: '/tmp/ccJvUTS2.o(.text+0x1e): ' there? That's just weird. [/edit] |
Add -lcurses to your compile command.
|
Cool! Thanks, that worked. ^_^
|
All times are GMT -5. The time now is 07:47 PM. |