Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Clear screen and clear line

6,848 views
Skip to first unread message

Nadir Sahnoun

unread,
May 6, 2003, 10:48:03 AM5/6/03
to
Hi all,

am looking a command that permit to clear screen for telnet session to the
router

as "cls" for Dos or "clear" for Unix and Linux
and what's the commande for clear current line as "scape" touch is pressed
under Dos

ThankYou very much for your help
NS

Jonathan V Hays

unread,
May 6, 2003, 11:12:50 AM5/6/03
to Nadir Sahnoun

The Cisco IOS accepts CTRL+U to clear the command line.

Clearing the screen is a function of your terminal emulator.

Barry Margolin

unread,
May 6, 2003, 11:50:36 AM5/6/03
to
In article <b98hv3$58m$1...@s1.read.news.oleane.net>,

Nadir Sahnoun <nsah...@traderforce.com> wrote:
>Hi all,
>
>am looking a command that permit to clear screen for telnet session to the
>router
>
>as "cls" for Dos or "clear" for Unix and Linux

I don't think Cisco has a clear screen.

>and what's the commande for clear current line as "scape" touch is pressed
>under Dos

Control-U

--
Barry Margolin, barry.m...@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

Nadir Sahnoun

unread,
May 6, 2003, 12:24:41 PM5/6/03
to
Thanks a lot !!!!

Nadir


"Barry Margolin" <barry.m...@level3.com> a écrit dans le message de
news: gRQta.15$_74...@paloalto-snr1.gtei.net...

Hansang Bae

unread,
May 6, 2003, 9:12:32 PM5/6/03
to
In article <b98hv3$58m$1...@s1.read.news.oleane.net>,
nsah...@traderforce.com says...

> Hi all,
>
> am looking a command that permit to clear screen for telnet session to the
> router
> as "cls" for Dos or "clear" for Unix and Linux
> and what's the commande for clear current line as "scape" touch is pressed
> under Dos

Never saw a command to clear the screen other than hitting CR/LF XX
number of times!

CTRL-u to erase the line. CTRL-a to get to the front of the line, and
CTRL-e to get to the end. I believe CTRL-y yanks like in vi...

--

hsb

"Somehow I imagined this experience would be more rewarding" Calvin
*************** USE ROT13 TO SEE MY EMAIL ADDRESS ****************
********************************************************************
Due to the volume of email that I receive, I may not not be able to
reply to emails sent to my account. Please post a followup instead.
********************************************************************

Nadir Sahnoun

unread,
May 7, 2003, 3:15:29 AM5/7/03
to
Hi Hansang and Hi all,

What do you mean by "hitting CR/LF XX" ?

Thanks a lot
Nadir

"Hansang Bae" <uo...@alp.ee.pbz> a écrit dans le message de news:
MPG.19222799e...@news-server.nyc.rr.com...

Mathias Gaertner

unread,
May 7, 2003, 3:31:29 AM5/7/03
to
Just hit "enter" many times (xx times to be exact :-) )

Mathias

Nadir Sahnoun

unread,
May 7, 2003, 5:03:54 AM5/7/03
to
ok !! exactly, Char(10+13) for CrLf

ThankYou Mathias


"Mathias Gaertner" <mgae...@igd.fhg.de> a écrit dans le message de news:
b9acoh$4ek$1...@news.tu-darmstadt.de...

Aaron Leonard

unread,
May 7, 2003, 6:47:55 PM5/7/03
to
No, we don't have a user "clear screen" command. However,
one could contrive something to meet the need.

Let us assume that the terminal(emulator)s being used
all comply to the ANSI spec. In that case, if
you transmit the following string to the terminal:

<ESC>[H<ESC>[J

(where <ESC> is the ASCII 0x1B character)
then the screen will clear.

so just build a file that contains that string, and
copy it into a file in flash.

Now enter the command "more FILENAME" and your screen
should clear.

You could even create an alias "cls" or "clear" to this
command, for the benefit of those with DOS or Unix on
the brain.

There might be a cleaner way to do all this using Tcl.

Cheers,

Aaron

---

~ In article <b98hv3$58m$1...@s1.read.news.oleane.net>,
~ Nadir Sahnoun <nsah...@traderforce.com> wrote:
~ >Hi all,
~ >
~ >am looking a command that permit to clear screen for telnet session to the
~ >router
~ >
~ >as "cls" for Dos or "clear" for Unix and Linux
~
~ I don't think Cisco has a clear screen.
~
~ >and what's the commande for clear current line as "scape" touch is pressed
~ >under Dos
~
~ Control-U

Nadir Sahnoun

unread,
May 9, 2003, 4:12:00 AM5/9/03
to
Hi,

Sorry !!
How can i enter command (syntaxe) on the file ?
build the file and copy it on the file file ?

ThankYou very lot
Nadir

"Aaron Leonard" <Aa...@Cisco.COM> a écrit dans le message de news:
kq2jbv4jmoamkq6c1...@4ax.com...

herzallah aymen

unread,
Jul 23, 2022, 8:48:06 AM7/23/22
to
the cleanest way to do this is a little trick, just select the text and drag and drop in the main CPT window and it will evetually clean, idon't know how it work but it works

Steve Dugan

unread,
Aug 2, 2022, 2:57:26 PM8/2/22
to
You can build your own version of the CLS command by using the menu options on a Cisco router.

Create a menu called CLEARSCREEN. Have the default option clear the screen for the menu, then exit.

then alias exec cls menu CLEARSCREEN

if you type cls the screen will clear and you will get a [Hit enter to continue] prompt

0 new messages