-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Lines containing unicode characters in integrated terminal differ in height #8219
Comments
Upstream issue: xtermjs/xterm.js#149 |
@Tyriar Excuse me, was this problem fixed in 1.4.0 stable? I downloaded the latest 1.4.0 stable, but still have this problem the console top is cut in vscode terminal, and the PROMPT is cut to two lines |
Oh!
=== Edit again The real problem is the font I used. If I used default fonts the terminal scroll up automatically problem will occur even I use the default font. But other problems will not occur when I not use the Source Code Pro |
@treri it was supposed to be fixed in v1.4.0 yes, do you have a custom line height set by chance in settings? |
@Tyriar no, I did not set line-height in my setting my setting is below, the last // Place your settings in this file to overwrite the default settings
{
//-------- Editor configuration --------
"editor.fontFamily": "Source Code Pro",
"editor.fontSize": 13,
"editor.rulers": [80, 100],
"editor.tabSize": 2,
"editor.wrappingColumn": 0,
"editor.renderIndentGuides": true,
"diffEditor.ignoreTrimWhitespace": false,
"window.reopenFolders": "none",
"projectManager.openInNewWindow": false,
"terminal.integrated.fontFamily": "Menlo, Monaco, 'Courier New', monospace"
}
|
@treri thanks! Also can you copy special characters in your prompt and paste them here? |
@Tyriar The theme file and prompt are https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/robbyrussell.zsh-theme |
I mean the arrow and cross characters in your prompt |
Is this? ➜ ✗ |
I'm using VSCode 1.4 and have the same problem like @treri described with oh-my-zsh default theme. |
@treri @eladcandroid do you mind testing if this is still happening in Insiders? Stuff to do with line height was changed with the introduction of the scroll bar so it might have been fixed. |
@Tyriar And I can't see the scroll bar? |
Hmm, I think oh-my-zsh may be using the application keypad mode then which is what i was using to turn off the scroll bar, otherwise it would show up in programs like vim. |
@Tyriar I will use bash to test again |
@Tyriar # Make sure that the terminal is in application mode when zle is active, since
# only then values from $terminfo are valid
if (( ${+terminfo[smkx]} )) && (( ${+terminfo[rmkx]} )); then
function zle-line-init() {
echoti smkx
}
function zle-line-finish() {
echoti rmkx
}
zle -N zle-line-init # By treri: If I comment out this line, my terminal works well
zle -N zle-line-finish
fi |
I believe this issue is fixed. The situation will improve further after #18588 is resoled |
See xtermjs/xterm.js#149, the fix will probably be added to the custom
style
element. The main thing to consider is how to allow line height customization and get the lines aligned correctly at the same time.The text was updated successfully, but these errors were encountered: