ConEmu icon indicating copy to clipboard operation
ConEmu copied to clipboard

Strange behavior on nano or man commands

Open Saya47 opened this issue 2 years ago • 1 comments

Versions

ConEmu build: 230724 x64 OS version: Windows 10 1803 x64 (OS Build 17134.1845) Used shell version: Cygwin

Problem description

I see strange behavior when using commands like nano or man on Cygwin or even when I use CMD or Powershell and SSH into a Linux host and use nano or man. The issue is that the text that gets deleted still shows on screen.

Steps to reproduce

  1. Open nano on Cygwin
  2. Write a long text on a single line that gets displayed on multiple lines.
  3. Now from the end of the line try to remove the characters (using backspace).

Actual results

Text is getting deleted but the change is not reflected on the terminal.

Expected results

For the text to get deleted in real time.

Additional files

I recorded a video, on the right, you see ConEmu Terminal with Cygwin and I open nano and you can see the keystrokes I'm pressing in the middle. As you can see if I start removing characters from the beginning of line, the issue does not happen. On the left you see MinTTY with Cygwin with normal behavior.

https://github.com/Maximus5/ConEmu/assets/35542834/5a8b4a2a-b99d-4438-905f-162c80195c91

Thins I've tried

  • BufferHeight mode already gets turned off when I open nano.
  • Turned off Inject ConEmuHK.

Extra note

I also mentioned strange behavior using command man. I could not reproduce this. But just one time that I was using the man command, I couldn't scroll up at all and text was getting duplicated and frozen and stuck on screen.

Thanks very much for this awesome program. I can't live without it a day.

Saya47 avatar Sep 09 '23 18:09 Saya47

Probably related:

  1. ssh with conemu on windows to linux host
  2. edit a file using "nano"
  3. run something that updates the line it currently writes to, e.g. for showing progress => broken, every write goes to a new line (e.g. docker compose pull or sth like that is broken afterwards)
  4. editing problems on command line happen when editing a previously used command with key up and changing something causes strange behavior.

RobIsHere avatar Apr 08 '25 07:04 RobIsHere