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

Integrated Terminal: Spaces in Right Prompt immediately after Powerline character do not render in the correct color #48775

Closed
j0hnm4r5 opened this issue Apr 26, 2018 · 5 comments
Assignees
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label

Comments

@j0hnm4r5
Copy link

Spaces in Right Prompt immediately after Powerline character do not render in the correct color in the integrated terminal.

Example

  • VSCode Version: 1.22.1
  • OS Version: macOS 10.13.4
  • ZSH Prompt: Powerlevel9k w/ Nerdfonts

Steps to Reproduce:

  1. Use a ZSH theme with a right prompt
  2. Visually check integrated terminal for issue

Does this issue occur when all extensions are disabled?: Yes

@vscodebot vscodebot bot added the terminal General terminal issues that don't fall under another label label Apr 26, 2018
@Tyriar
Copy link
Member

Tyriar commented May 11, 2018

What's in your settings.json?

@Tyriar Tyriar added the info-needed Issue requires more information from poster label May 11, 2018
@j0hnm4r5
Copy link
Author

Nothin I can see being an issue:

{
    // fonts & themes =========
    "editor.fontFamily": "Operator Mono Lig, Operator Mono, Fira Code, monospace",
    "editor.fontLigatures": true,
    "editor.fontSize": 14,
    "workbench.colorTheme": "One Dark Rain Coat",
    "terminal.integrated.fontFamily": "Hurmit Nerd Font",
    "terminal.integrated.fontSize": 14,
    "workbench.iconTheme": "seti",

    // editor =========
    "window.zoomLevel": -1,
    "editor.renderWhitespace": "boundary",
    "editor.insertSpaces": false,
    "editor.formatOnSave": true,
    "editor.formatOnPaste": true,
    "editor.multiCursorModifier": "alt",
    "editor.snippetSuggestions": "top",
    "editor.renderIndentGuides": true,
    "workbench.startupEditor": "newUntitledFile",
    "files.autoSave": "onFocusChange",
    "npm.packageManager": "yarn",
    "npm.enableScriptExplorer": true,
    "explorer.confirmDelete": false,
    "explorer.confirmDragAndDrop": false,
    "extensions.ignoreRecommendations": true,
    "extensions.showRecommendationsOnlyOnDemand": true,
    "files.associations": {
        "*.js": "javascript"
    },

    // =========
    //  plugins 
    // =========

    // bracket pair colorizer =========
    "bracketPairColorizer.consecutivePairColors": [
        "()",
        "[]",
        "{}",
        [
            "#ff5c57",
            "#f3f99d",
            "#5af78e",
            "#57c7ff",
            "#ff6ac1"
        ],
        "#ff5c57"
    ],

    // sync =========
    "sync.gist": "REDACTED",
    "sync.lastUpload": "2018-05-11T20:15:19.865Z",
    "sync.autoDownload": false,
    "sync.autoUpload": true,
    "sync.lastDownload": "",
    "sync.forceDownload": false,
    "sync.host": "",
    "sync.pathPrefix": "",
    "sync.quietSync": false,
    "sync.askGistName": false,
    "sync.removeExtensions": true,
    "sync.syncExtensions": true,

    // gitlens =========
    "gitlens.advanced.messages": {
        "suppressShowKeyBindingsNotice": true
    },
    "gitlens.currentLine.enabled": false,

    // XO =========
    "xo.enable": true,
}

@Tyriar
Copy link
Member

Tyriar commented May 14, 2018

You're not using a powerlines font?

"terminal.integrated.fontFamily": "Hurmit Nerd Font"

@Tyriar Tyriar closed this as completed May 14, 2018
@j0hnm4r5
Copy link
Author

j0hnm4r5 commented May 14, 2018

It is a Powerline font, just one with a ton more symbols than a standard one: https://github.com/ryanoasis/nerd-fonts. Nerdfonts do explicitly contain the Powerline symbols.

The issue seems to stem from VSCode's rendering of ambiguous-width characters. It can be fixed in iTerm, as seen here: https://github.com/bhilburn/powerlevel9k/wiki/Troubleshooting#strange-character--segment-spacing

FWIW, this issue does not occur in iTerm2 (since the ambiguous-width characters are not rendered as double-width), but does occur in Hyper.

@Tyriar
Copy link
Member

Tyriar commented May 14, 2018

Thanks for the info! Let's track this in xtermjs/xterm.js#1453

@vscodebot vscodebot bot locked and limited conversation to collaborators Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster terminal General terminal issues that don't fall under another label
Projects
None yet
Development

No branches or pull requests

2 participants