-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Line Spacing Issues #475
Comments
After pulling down some menu items, you'll notice that some lines get "out of sync" with the ones next to them and the statusbar line starts creeping lower on the screen, spilling over like the HTOP display. TMUX will eventually do the same and have a statusbar way below the actual terminal screen. The mouse support of xterm.js is a lot bettter than shellinabox though! |
Which commit is this on? https://github.com/sourcelair/xterm.js/commits/master |
@uudruid74 can you confirm if this happens on master? |
ekl@Taro ~/Programming/xterm.js/demo (git)-[master] % git describe |
I can't repro these line spacing issues on Windows, Mac or Linux on the demo. Do you have any other CSS on the page that could affect this? I also recommend checking on the latest |
This is just running the installed demo - no changes whatsoever. Linux Chrome 53 and running demo via localhost.
ekl@Taro ~/Programming/xterm.js (git)-[master] % git describe :( Still the same! FIX: I changed the fonts being used by adding the following to the stylesheet.
It's the set I use with shell-in-a-box, so apparently courier is suspect on this system. I think on some systems, Courier looks monospace, but actually isn't. |
I can reproduce the problem above, and @wayerr solution seems to work very well, as it does not change the height of the surrounding div. I guess the only problem with using |
There are some odd line spacing issues. The line spacing is set at 21px in the demo, but this makes spaces between the lines. Setting it to 18px will get rid of the spaces, but now mouse coordinates are all off since they are based on the 21px line height. Worse, some apps (like htop - see screenshot) display the status bar half-over the bottom of the terminal. I think these are related.
Details
Here's HTOP hanging over the edge
Here is Midnight Commander looking awful (spaces between lines):
And the expected behavior of Midnight Commander (shown in shellinabox, colors set to linux terminal):
The text was updated successfully, but these errors were encountered: