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

Height of terminal changes with split tmux panes #11

Open
alanchrt opened this issue Nov 19, 2013 · 5 comments
Open

Height of terminal changes with split tmux panes #11

alanchrt opened this issue Nov 19, 2013 · 5 comments

Comments

@alanchrt
Copy link

I've noticed similar behavior in tty.js

Switching between two tmux windows is fine, and the size of the terminal remains consistent:

image

image

However, when I split tmux vertically, the terminal height increases:

image

It looks like it's one pixel per row. In this instance of 40 rows, it jumped from 600px to 639px in height. It's more pronounced with more rows.

My only guess is that it has something to do with the height of the pipe character – | – being used to split the panes, but I don't know why this doesn't cause issues in split Vim as well.

Any ideas?

@alanchrt
Copy link
Author

Ah, apparently those two characters are slightly different:

>>> ord('|')
124
>>> ord('│')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: ord() expected a character, but string of length 3 found

Still not sure how to resolve it.

@alanchrt
Copy link
Author

This is the offending character: http://www.fileformat.info/info/unicode/char/2502/index.htm

@alanchrt
Copy link
Author

Looks like it depends on the font. Andale Mono does a decent job with it, but has other spacing issues. Any recommended font?

@amshali
Copy link

amshali commented Mar 6, 2015

I hit this issue as well in a different context. Any good recommended font?

@yoshiokatsuneo
Copy link

I made a Pull Request that handles non-English characters.
#97

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

3 participants