clrscr in wascana

9 views
Skip to first unread message

moldrien

unread,
Dec 14, 2010, 8:01:40 AM12/14/10
to wascana
Hi all,
I'm writing simple programs that, for instance, show a menu to the
user, he choses an option, it's serviced (say printing a message), and
then shows the menu again. I would like to clear the screen and re-
print the menu. In order to accomplish this I use this code:

#include <windows.h>
#define clrscr() system ("cls")
void gotoxy(int x, int y)
{
COORD coord;
coord.X = x;
coord.Y = y;
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord);
}

(as you can see I also want to use the known gotoxy in a near future)
BUT it doesn't work. The program shows a non printable character as a
sall rectangle but do not clear the console view.
So, is there another way to get this done?, or is there an equivalent
of clrscr in wascana?

I think this problem has to do with encoding used in console view.
I've tried with a diferent one (I opened a thread related with this
some days ago) without success.

Regards, and thanks in advance
Fernando

Doug Schaefer

unread,
Dec 14, 2010, 10:11:43 AM12/14/10
to was...@googlegroups.com
Wascana doesn't offer anything other than standard libraries. This is
a more general Windows development question.

Fernando Poza Saura

unread,
Dec 15, 2010, 12:15:10 PM12/15/10
to was...@googlegroups.com


2010/12/14 Doug Schaefer <cdt...@gmail.com>

Wascana doesn't offer anything other than standard libraries. This is
a more general Windows development question.

... ok Doug, thanks for your help. Anyway, this is not big deal, one can always launch the programs typing the executable file from DOS command interpreter. This way everything looks to work great.

Regards.
Fernando
 
Reply all
Reply to author
Forward
0 new messages