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

ConEmu cursor disappear when use default {Bash::MinGW bash} task #1502

Open
davidhenrygao opened this issue Apr 4, 2018 · 5 comments
Open

Comments

@davidhenrygao
Copy link

davidhenrygao commented Apr 4, 2018

Hi! I get a problem as title.
My ConEmu version is ConEmuPack.180318(portable).
And I use mingw-get-setup.exe to install MinGW and msys.

The default {Bash::MinGW bash} task setting is as bellow:
set CHERE_INVOKING=1 & set "PATH=C:\MinGW\msys\1.0\bin;%PATH%" & %ConEmuBaseDirShort%\conemu-msys-32.exe -new_console:p C:\MinGW\msys\1.0\bin\bash.exe --login -i -new_console:C:"C:\MinGW\msys\1.0\msys.ico"
When I new a console use {Bash::MinGW bash} task, the cursor disappeare.
But I new a console use {Shells::cmd} will not.

I also download ConEmuPack.161206(portable), the default {Bash::MinGW bash} task setting is as bellow:
set CHERE_INVOKING=1 & C:\MinGW\msys\1.0\bin\bash.exe --login -i -new_console:C:"C:\MinGW\msys\1.0\msys.ico"
Both ConEmuPack.180318(portable) and ConEmuPack.161206(portable) will correct when new a console with this setting.

But this setting also has problem for me.
I use ssh to login linux, and my linux's locale is zh_CN.UTF-8. So I add the chcp utf-8 setting in the ConEmu's Environment setting.
When use ConEmuPack.161206(portable) default {Bash::MinGW bash} task setting, both in ConEmuPack.180318(portable) and ConEmuPack.161206(portable), ConEmu will block forever when print Chinese!
For example, after I login my centos use ssh, and I use ls command to list the file and dir, if there is a chinese file name or dir name, ConEmu will block forever!
But use ConEmuPack.180318(portable) default {Bash::MinGW bash} task setting in ConEmuPack.180318(portable) will not lead to this result, it can print Chinese correctly! The only problem is the cursor is disappeare!

I hope there is a solution to this problem.
Thanks.

@Maximus5
Copy link
Owner

Maximus5 commented Apr 4, 2018

I think ConEmu issue tracker is wrong place to ask.
ConEmu hides cursor when console application asks for it. Check your bash profile.

To ensure, you may turn on ANSI logging and check for cursor modification sequences.

@davidhenrygao
Copy link
Author

davidhenrygao commented Apr 7, 2018

Hello, I turn on the logging and the log info is as bellow:

"C:\Users\acer\Downloads\ConEmuPack.180318\ConEmu\conemu-msys-32.exe" --log C:\Users\acer\Downloads\ConEmuPack.180318 C:\MinGW\msys\1.0\bin\bash.exe --login -i

^[]9;11;"TIOCSWINSZ(170,39) succeeded"^G
^[[?1034h^[]0;MINGW32:^G^M
^[[32macer@acer-PC ^[[33m
^[[0m^M
$

I didn't find what the 'ESC [ ? 1034 h' code means?

Maybe I shoud describe my problem more simply and clearly:

  1. My os is windows 7 64bit;
  2. I use mingw-get-setup.exe to install MinGW and msys, use all default setting to instatll it and don't change anything;
  3. Download ConEmuPack.180318.7z portable, extract it, run ConEmu64.exe, and new a tab use default {Bash::MinGW bash} task, but the cursor is not show;
  4. Download ConEmuPack.161206.7z portable, do the same thing, and the cursor is here.

I just down all the sofewares, install and run them, and didn't change anything of them, so I don't think it's the problem about my bash profile. I'm confused with your advice.

So, what can I do with this problem?
Thanks.

@Maximus5
Copy link
Owner

Maximus5 commented Apr 7, 2018

The file please.

Comparison with 161206 is not fair, there were no connector, and ConEmu didn't received any ANSI.

@Maximus5
Copy link
Owner

Maximus5 commented Apr 7, 2018

You may try to change TERM to xterm via connector arguments

@davidhenrygao
Copy link
Author

davidhenrygao commented Apr 8, 2018

Did you mean the log file? Before I add -t xterm connector arguments, it is:
connector-6676-out.log
tim 20180408111943

After I add -t xterm, it is:
connector-4364-out.log
tim 20180408112118

The cursor is still not show.
Thanks.

@Maximus5 Maximus5 added this to To Do in ConEmu via automation Apr 8, 2018
@Maximus5 Maximus5 added processes and removed ansi labels Apr 8, 2018
@Maximus5 Maximus5 moved this from To Do to In progress in ConEmu Apr 8, 2018
@Maximus5 Maximus5 moved this from In progress to Ready for Testing in ConEmu Apr 8, 2018
Maximus5 added a commit that referenced this issue Apr 8, 2018
…task.

  Unlike actual cygwin and Msys 2.0 builds, the MinGW (Msys 1.0) starts processes
  detached from conhost, so ConEmu server does not see them (bash.exe).

  TODO: Retrieve process lists from connector.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
ConEmu
  
Ready for Testing
Development

No branches or pull requests

2 participants