Skip to content
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

Cygwin zsh w/ Connector wraps lines above #1535

Open
agross opened this issue Apr 28, 2018 · 5 comments
Open

Cygwin zsh w/ Connector wraps lines above #1535

agross opened this issue Apr 28, 2018 · 5 comments
Labels
Projects

Comments

@agross
Copy link

agross commented Apr 28, 2018

Versions

ConEmu build: 180427 x64
OS version: Windows 10 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): Cygwin zsh

Problem description

When typing long lines, the cursor wraps to the line above. The typed line gets deleted.

Steps to reproduce

  1. Open shell: "%ConEmuBaseDir%\conemu-cyg-64.exe" -cur_console:pm:"" /usr/bin/zsh --interactive --login
  2. Type m until it wraps

Actual results

Line wraps above, what was typed gets deleted.

Expected results

Line wraps normally.

Additional files

2018-04-29_01-21-34

This is a Cygwin zsh without Connector:
2018-04-29_01-02-47

@Maximus5 Maximus5 added this to To Do in ANSI via automation Apr 28, 2018
@Maximus5 Maximus5 added the ansi label Apr 28, 2018
@mweber26
Copy link

mweber26 commented Jun 1, 2018

I'm not sure if this is the same problem, but when I ssh to a remote server that is running screen (with a bottom task bar) then using tab complete in that shell messes up the whole bottom on the screen:

SCREEN showing bottom bar:
shot1

Typing "bas" and then hitting tab for tab complete:
shot2

What "bas" then hitting tab (not in SCREEN) should look like:
shot3

@Maximus5
Copy link
Owner

Maximus5 commented Jun 7, 2018

I don't see version and console info on the screenshot

@timzuiddam
Copy link

Having the exact same issue here since I can remember (so since a lot of ConEmu & OS versions back), but only with the Cygwin connector.

Current versions:
ConEmu 190310 [32]
OS: Win10x64 Build 17134.619

Though, when using wslbridge.exe directly it works fine.

@atYuguo
Copy link

atYuguo commented Jan 15, 2021

This actually happens with Cygwin for any terminal I tried, e.g. ConEmu, Microsoft Terminal, terminus... And this is not only related to zsh, it also happens to bash when using "ohmybash" :) So I would say this is not ConEmu's fault.

What interesting is, inserting a newline after prompt can solve this problem. For example, adding the following line to the end of your .zshrc:

export PS1="$PS1"$'\n'\$

@Maximus5
Copy link
Owner

Such problems usually arise on badly formed PS1 variable.
Don't forget to escape non printable parts.
https://conemu.github.io/en/ShellWorkDir.html#connector-ps1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
ANSI
  
To Do
Development

No branches or pull requests

5 participants