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

Ending cusor motion takes ~3 seconds #33

Open
xobs opened this issue Jul 27, 2018 · 1 comment
Open

Ending cusor motion takes ~3 seconds #33

xobs opened this issue Jul 27, 2018 · 1 comment

Comments

@xobs
Copy link

xobs commented Jul 27, 2018

The execution of the rmcup command takes about 3 seconds. That means that actions such as entering or exiting vim or tmux are very slow. It is difficult to quantify this slowness because the problem is in the terminal output and not in the pty.

For example, the following command appears to take 3 seconds when running under ConEmu, but is instantaneous when running under cmd.exe:

xobs@Cuboid:/$ time vim -c ":q"

real    0m0.184s
user    0m0.047s
sys     0m0.047s
xobs@Cuboid:/$

A workaround is to unset the rmcup command in termcap for the default terminal, xterm-256color:

$ infocmp xterm-256color | sed -E 's/rmcup=[^ ]+ //g' | tic -

This will place a patched termcap info file in ~/.terminfo/x/xterm-256color that simply removes the rmcup variable.

@xobs
Copy link
Author

xobs commented Jul 27, 2018

...of course, removing rmcup disables the ability to get the scrollbar back after running such commands. Whether this is preferable is left as an exercise to the reader.

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

No branches or pull requests

1 participant