New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Messed up output from remote mikrotik shell. #1567

Closed
xx25 opened this Issue May 21, 2018 · 4 comments

Comments

Projects
2 participants
@xx25

xx25 commented May 21, 2018

Versions

ConEmu build: 180506 x64
OS version: Windows 10 1803 x64
Used shell version: bash from WSL

Problem description

Remote shell of mikrotik router looks very messed up with clean installation of WSL and Conemu.
No issues with native windows 10 console, already tried all possible setting but without any luck.

mikrotik-bad

mikrotik-good

Bash task is configured as: set "PATH=%ConEmuBaseDirShort%\wsl;%PATH%" & %ConEmuBaseDirShort%\conemu-cyg-64.exe --wsl -C~ -cur_console:pm:/windir

I had some small issues with previous installation, but clean install is completely non-usable.
Probably something wrong with some ANSI sequence.

Additional files

More detailed console log:

ConEmu-2018-05-22-p5516.log

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented May 23, 2018

That is because your mikrotik output contains code \e[1;9999r. This locks scrolling in that region and all output goes above the screen.
I don't know where this value (9999) comes from, but it's incorrect, because your ConEmu backscroll buffer is much larger.

@Maximus5 Maximus5 added this to To Do in Inspection via automation May 23, 2018

@xx25

This comment has been minimized.

xx25 commented May 23, 2018

Is it possible to do some workaround for that? It works in linux console, in putty, in default windows console, so only Conemu is unhappy with it.

@Maximus5

This comment has been minimized.

Owner

Maximus5 commented May 23, 2018

I have no idea why 9999 number appears. Try to limit backscroll buffer in ConEmu?
Run your task with switch -cur_console:h1000, any changes? Attach log file...

@xx25

This comment has been minimized.

xx25 commented May 23, 2018

Just found the solution! It works if backscroll buffer is 22769 or less.
image

ConEmu-2018-05-23-p14356.log

@xx25 xx25 closed this May 25, 2018

Inspection automation moved this from To Do to Done May 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment