-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
BufferHeight causes a delay when opening/closing apps that use alternate screen (eg vim, nano, etc) #1385
Comments
Just tried upgrading to the latest |
Same problem here. Is there any workaround for launching nano in a way that doesn't lag the console? This is the last thing preventing me from switching from Cygwin to WSL. |
Same issue here. Running |
I also notice this same behavior when running vim/less over ssh. I see a long pause when opening these programs. If I disable the BufferHeight I no longer see the pause. ConEmu version: 180617 (with flags -cur_console:p) |
I can confirm the same delay happens for me, and there is no delay when bufferheight is turned off. ConEmu 180626 |
Can confirm it too. |
Work on new pty interface is in progress |
I can confirm the same delay happens for me, and there is no delay when bufferheight is turned off. ConEmu 180626 |
Getting the same issue inside cygwin too. Opening and closing things like emacs has an extremely noticeable delay of 1-2 seconds with Bufferheight enabled. ConEmu 180626 preview |
Disabling (unchecking) bufferheight doesn't work for me, but changing the value to something smaller does... I've found that using smaller values (say 3000) seems to be a decent compromise until there's a fix. |
Same issue to me. |
1 similar comment
Same issue to me. |
Problem Continues - ConEmu64 190108 The delay between Debug's RealConsole and default ConEmu (60k lines of buffer?) was about 3 seconds, or 50% when shutting down aptitude. Cutting /Gen/Size&Pos/Size/Console Buffer Height to 5K significantly decreases the delay. |
Exactly the same issue (observation 1).
|
For anyone else simply looking for a Linux shell experience on Windows with WSL and was hoping to use ConEmu + WSL, I found an alternative solution that works well for me. I had given up on ConEmu due to this issue (sorry, @Maximus5 , but I do thank you for all of your work on this project.. I used it for a few years). You may want to check out X410 in the Microsoft Store. It's usually $10 (and almost always "on sale"). You can use a native Linux terminal like Tilix or GNOME terminal with WSL. Just make sure to follow their tutorials on their website for setup (including running sudo commands as yourself, not as root). I'm not affiliated or anything - just another person looking for a Linux shell experience on Windows with WSL. |
The issue is gone. Thanks for your work. |
With 190310, actions like close vim, While in |
tig problem is not related to this issue. Please fill new one |
Any progress update or some ETA on this one? Thanks for your work so far. |
@dzek69 What are you asking about? The issue is closed, ETA is zero. |
Oh, sorry, it was closed just few hours ago and I missed that. Just upgraded and looks like it isn't slow anymore. Thanks. |
I am still experiencing the same issue today. |
Experiencing the same issue today with 201124 |
@bytefluxio How exactly do you start wsl? |
@Maximus5 sorry i missed your reply. I start using the following: I hope I didn't misunderstand your question. So I'm guessing I'm doing something wrong :( |
@bytefluxio That's amazing... So I have more questions
The automatic change to "XAB" is unexpected when you run "wsl.exe" directly without Connector. And that is a big problem because arrow keys aren't working as expected in WSL. So, I wonder how that change happens on your PC? Could you turn on the "Log console output" and "Internal LogFiles location" checkboxes in Settings, after that start new WSL tab, reproduce the problem (start/exit Vim) and attach here generated log files (from both locations). |
PS: Since the gif, I have changed shells form zsh to fish and its a little faster now, but so is everything. the vim thing is still the worst :( |
@bytefluxio Hey, I got the same problem. Both vim.exe(8.2.2859) in Windows(21H1 19043.1055) and vim(8.1.2269) in WSL2(Ubuntu 20.04.2) there is a ~2sec delay opening and closing, but using Windows Terminal(1.8.1521.0) or PowerShell(7.1.3) will not. I found uncheck "Inject ConEmuHk.dll into all processes started in ConEmu tabs" in Settings can solve this problem. (ConEmu 210422) |
@BlueSky-07 's suggestion to uncheck "Inject ConEmuHk.dll" did the trick for me too. |
@BlueSky-07 this trick also works for me, thx 🙏 |
Versions
ConEmu build: 171226 x32/x64 (tried with both)
OS version: Windows 10 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): bash (WSL)
Problem description
Whenever I open or close a file using
vim
there's a delay of several seconds. Other apps that use the alternate screen mechanism (such asnano
) seem to have the same problem as well. Turning off theBufferHeight
option by pressing the related button on the tab bar fixes the issue, but then I lose all scrollback.Steps to reproduce
vim
ornano
commands that ship with the Ubuntu instance from the MS store.Some notes/observations
When I close a file in vim, there's first a slight delay, then the terminal screen loses all color and goes black and white, and then there's a longer delay before vim finally quits. Not sure if that's a helpful detail for tracking down the issue, but it is pretty weird.
The
Real console
(from thedebug
menu) has slightly different behavior from the actual ConEmu console. When opening a file with vim, both the Real and the ConEmu consoles hang for a couple of seconds. However, when I close vim it closes instantly in the Real console, whereas the ConEmu console hangs again for a couple of seconds.The text was updated successfully, but these errors were encountered: