• Re: Clear screen and clear line

    From herzallah aymen@21:1/5 to Nadir Sahnoun on Sat Jul 23 05:48:03 2022
    On Friday, May 9, 2003 at 9:12:00 AM UTC+1, Nadir Sahnoun wrote:
    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...
    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

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Steve Dugan@21:1/5 to All on Tue Aug 2 11:57:24 2022
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)