Re: Clear screen and clear line

Jul 23, 2022 Last reply: 2 years ago 1 Replies


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" snipped-for-privacy@Cisco.COM a écrit dans le message de news:
> snipped-for-privacy@4ax.com...
> > 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
> >
> > ---
> >
> > ~ > > ~ >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
> >

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

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

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required