Re: How do I clear a terminal screen?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: How do I clear a terminal screen?
On Tue, 4 Jan 2005, Siri Amrit Kaur wrote:

> What command do I type to clear a screwed up terminal screen and return it to
> a normal prompt?
>
> I did Ctrl+Alt+F1 and was typing something, hit Enter, and lost the prompt.
> All I have is: " > " at the beginning of each line. Doesn't matter what I
> type, when I hit Enter I just go back to " > ". I read the man pages for
> term, tput, clear, and some others I forget.


I know this was already solved.

The " > " sounds like it was probably the PS2 secondary prompt (which
defaults to "> ". Control-C should also abort this current command line to
get back to normal prompt.

Answering the original question on how to clear a terminal, I often use
"reset". And if that doesn't work, I use:

printf "\033c"


Jeremy C. Reed

                 technical support & remote administration
                http://www.pugetsoundtechnology.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss