CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

HYPERTERMINAL

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ccmcca



Joined: 08 Oct 2005
Posts: 13

View user's profile Send private message Send e-mail

HYPERTERMINAL
PostPosted: Tue Oct 11, 2005 11:46 am     Reply with quote

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

View user's profile Send private message

PostPosted: Tue Oct 11, 2005 11:59 am     Reply with quote

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

View user's profile Send private message

Re: HYPERTERMINAL
PostPosted: Tue Oct 11, 2005 12:47 pm     Reply with quote

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







PostPosted: Tue Oct 11, 2005 2:07 pm     Reply with quote

Or you can do several

printf ("\r\n");

statements to clear the screen. Very Happy
Guest








PostPosted: Tue Oct 11, 2005 2:11 pm     Reply with quote

valemike wrote:
Or you can do several

printf ("\r\n");

statements to clear the screen.

Alternatively, try printf("\f");
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group