View previous topic :: View next topic |
Author |
Message |
ccmcca
Joined: 08 Oct 2005 Posts: 13
|
HYPERTERMINAL |
Posted: Tue Oct 11, 2005 11:46 am |
|
|
How can i clean the screen, of an Hyperterminal sesion?
I'm working with a pic 16f877a and i want to show a menu on a PC, but i need to clean the screen sometimes and i dont Know How.
The compiler is ccs v3.227
Thanks.- |
|
|
aaaaamartin
Joined: 17 Apr 2005 Posts: 39 Location: Germany Stuttgart
|
|
Posted: Tue Oct 11, 2005 11:59 am |
|
|
enable echo in Hyperterminal (file->properties->settings->ascii_setup)
and type in: escape[2J
or in CCS:
Code: |
printf ("\033[2J");
|
or upgrade to Hyper Terminal private edition (freeware)
there is a menu item to clear the screen.
Martin |
|
|
Neutone
Joined: 08 Sep 2003 Posts: 839 Location: Houston
|
Re: HYPERTERMINAL |
Posted: Tue Oct 11, 2005 12:47 pm |
|
|
ccmcca wrote: | How can i clean the screen, of an Hyperterminal sesion?
I'm working with a pic 16f877a and i want to show a menu on a PC, but i need to clean the screen sometimes and i dont Know How.
The compiler is ccs v3.227
Thanks.- |
I was looking at some old code that interfaced with hyperterminal (cause everyone has it) and it looks like it uses;
putc(12);
printf("Rate %2u",Rate);
putc(13);
putc(10);
puts("Left- Right+");
That should do a clear screen and write to two lines. |
|
|
valemike Guest
|
|
Posted: Tue Oct 11, 2005 2:07 pm |
|
|
Or you can do several
printf ("\r\n");
statements to clear the screen. |
|
|
Guest
|
|
Posted: Tue Oct 11, 2005 2:11 pm |
|
|
valemike wrote: | Or you can do several
printf ("\r\n");
statements to clear the screen. |
Alternatively, try printf("\f"); |
|
|
|