Prompt in cmd.exe when using clink is wrapped early #2230

Open
opened 2026-01-30 22:50:09 +00:00 by claunia · 0 comments
Owner

Originally created by @g0blue on GitHub (Jun 25, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1715.0

Clink version 0.4.9

Hack font

Steps to reproduce

Use clink with cmd.exe within Windows Terminal.

I have a custom lua script for clink that intends to mimic the prompt produced by "powerline" in bash. See https://powerline.readthedocs.io/en/latest/ for information on powerline.

I've attached all of my clink settings and scripts:
clink.zip

Note: This prompt uses characters not included in most fonts (including Consolas). You must use a powerline compatible font (like "Hack" linked above) for correct prompt display.

Expected behavior

I expect the terminal to look somewhat like this (running inside ConEmu):
image

Actual behavior

Instead I get this:
image

For some reason the size of the terminal as deduced by clink is incorrect and the prompt is wrapped prematurely.

To your credit, Windows Terminal does a better job of color reproduction than ConEmu.

Originally created by @g0blue on GitHub (Jun 25, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Windows build number: Microsoft Windows [Version 10.0.18362.175] Windows Terminal version (if applicable): 0.2.1715.0 Clink version [0.4.9](https://mridgers.github.io/clink/) [Hack font](https://sourcefoundry.org/hack/) # Steps to reproduce <!-- A description of how to trigger this bug. --> Use clink with cmd.exe within Windows Terminal. I have a custom lua script for clink that intends to mimic the prompt produced by "powerline" in bash. See https://powerline.readthedocs.io/en/latest/ for information on powerline. I've attached all of my clink settings and scripts: [clink.zip](https://github.com/microsoft/terminal/files/3326761/clink.zip) > **Note:** This prompt uses characters not included in most fonts (including Consolas). You must use a powerline compatible font (like "Hack" linked above) for correct prompt display. # Expected behavior I expect the terminal to look somewhat like this (running inside ConEmu): ![image](https://user-images.githubusercontent.com/8888327/60122879-07b9ea00-973b-11e9-9e35-aa95832436e2.png) # Actual behavior Instead I get this: ![image](https://user-images.githubusercontent.com/8888327/60122903-1a342380-973b-11e9-9c3c-b932d38f0c09.png) For some reason the size of the terminal as deduced by clink is incorrect and the prompt is wrapped prematurely. To your credit, Windows Terminal does a better job of color reproduction than ConEmu.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#2230