Lady777 wrote:
I typed #include <curses.h> and system("clear"); and I got this:
TERM environment variable not set.
I think this is because Xcode's run log window doesn't normally set the TERM environment variable. I haven't been able to get any screen clearing commands to work in Xcode's run log window so I don't think it acts like a true terminal window. However system("clear") should work in Terminal.app. By the way, calling system() doesn't require curses.
When I typed #include <curses.h> and system("cls");, I got this:
sh: line 1: cls: command not found
Because "cls" is not a valid command in OS X... "clear" is though.
When I typed #include <curses.h> and clear();, I got this:
ZeroLink: unknown symbol '_clear'
Because you didn't link with the curses library... refer to
your other thread. Linking with curses and calling clear(); doesn't work for me in Xcodes run log
or in Terminal. It runs but it doesn't clear the window. But I'm not familiar with using curses so I could certainly be doing something wrong.
Steve
Message was edited by: Steve Herman1