Re: How do I clear a terminal screen?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: der.hans
Date:  
To: plug-discuss
Subject: Re: How do I clear a terminal screen?
Am 04. Jan, 2005 schwätzte Jeremy C. Reed so:

> 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.


Yes. <ctrl>-c should be used before trying <ctrl>-d because <ctrl>-c won't
kill the shell and <ctrl>-d will. Only try <ctrl>-d if <ctrl>-c didn't
work.

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


What char is that?

<ctrl>-l calls for a repaint.

xterm has soft and full resets available by using <ctrl> and the middle
mouse button. Dunno if rxvt or other emulators have something similar.
That feature is why I continue to use xterms.

ciao,

der.hans
-- 
#  https://www.LuftHans.com/    http://www.AZOTO.org/
#  Knowledge is useless unless it's shared. - der.hans
---------------------------------------------------
PLUG-discuss mailing list - 
To subscribe, unsubscribe, or to change  you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss