cancel
Showing results for 
Search instead for 
Did you mean: 

EXOS CLI Cursor jumping

EXOS CLI Cursor jumping

M_Nees
Contributor III
EXOS CLI cursor is sometimes jumping out of the windows - especially on long command lines or if the putty windows was resized during the session (which is quite a normal effort).

Have a look:

40b8376cdfe44e71bad3863a2650c857_RackMultipart20161026-23712-190kuw-Cursor-jumping2_inline.png



Especially if you want to change one parameter within a existing line of commands.

This Problem occurs in all EXOS versions. I try several putty versions, but all have the same issue.

Does anybody know this issue ?

Is it possible to avoid that problem ? Maybe an adjustment on Putty client ?
Are there a possibility to make EXOS CLI line redraw ?

Regards
44 REPLIES 44

a CR is being opened.

dfroe
New Contributor II
You want an example? Well, I just typed a few commands on a recent XOS Switch (16.1.3.6 patch1-11), and the CLI get messed up even without any resizing of my terminal.

1) Open a PuTTY SSH to XOS.

2) Execute the following command:
download image 1.2.3.4 foo.bar vr VR-Default
It will intentionally throw an error without doing anything.

3) Press Key-Up to recall the last command.

4) Scroll left and position your cursor right after the filename for example.

5) Start typing anything and continue typing.

6) As soon as there is a line wrap going to happen at the end of your window, the terminal gets messed up like seen on Matthias' first screenshot.

And common, recalling a command and editing it, that's nothing unusal. I guess that even worked on VT100's back in the 80's..

Indeed.
I guess I didn't notice it because I need to type a lot to have it happen, way more than any command allows.

That shouldn't happen, a CR should be opened to have this investigated.

I'd wager that results from the error message not taken into account correctly for cursor positioning (I could reproduce this using XTerm, OpenSSH, EXOS 15.3).

If I remember correctly just recalling or editing inside a line needing wrapping results in the "jumping cursor" when connected via serial console using a terminal window size that is different from the configured CLI size.

Erik_Auerswald
Contributor II
For what it's worth, terminal window resizing in SSH sessions just works for GNU/Linux inside XTerm and gnome-terminal using OpenSSH with Bash or Busybox ash as shell. It does not depend on Bash's checkwinsize option. There are no artificial limits for window sizes either.

I think it annoying that EXOS does not adjust automatically to a changed terminal window size for SSH sessions. 
GTM-P2G8KFN