## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
Daniel Gordon
@DanielGGordon

This is a nerd font - DejaVuSansMono - but it's actually a WIP font (The nerd font maintainer gave it to me).

I saw on the mintty wiki there is a way to interpret ambiguous font width characters always at 2-space characters:

LC_CTYPE=zh_SG.utf8 mintty &

But I'm not sure what this is. I tried adding LC_CTYPE as a system-wide environment variable - but that didn't do anything.

Also to note, hyper terminal also had a similar issue with clipped glyphs

mintty
@mintty
I don't see in your screenshot how it would be clipped. It's fully displayed everywhere.
Apart from that, note this is not a double-width character, as explained in those issues.
Daniel Gordon
@DanielGGordon
It's clearly clipped here

That's just one example. But you can also tell that the first glyph (left of 8.58G) and the directory glyph (before ~/.aws) are both cut off on both sides.

When you say it's not a double width glyph - how do you know that? How can I find out what a glyph is coded as (in terms of double/single width)?

mintty
@mintty
The "git" glyph is not clipped in your screenshot, except in the initial position where it obviously hangs over outside of the window. I saw the character code in your echo command. I cannot talk about the other characters because you didn't answer my question which they are.
I didn't say it's not double-width glyph but it's not a double-width character, in terms of Unicode.
Daniel Gordon
@DanielGGordon
Here is the unicode for that first glyph - \u0fe4
As you can see, in the prompt it's clearly 'cut off'. And when printed with letters before or after, then it gets 'cut-off' by being overlapped with surrounding characters
mintty
@mintty
Being overlapped is not cut-off. Please provide the input to provide the true cut-off case (the prompt), otherwise I cannot reproduce that.
Daniel Gordon
@DanielGGordon

Yea I'm not sure, I'm trying to find out how to replicate. All I can do is get the icon to overlap.

So how can I force Mintty to interpret all ambiguous glyphs as double-width chars?

Ryan L McIntyre
@ryanoasis
@DanielGGordon Hey I am actually in here too :smile: . @mintty The left side overlap seems to be due to the LBearing being off in Nerd Fonts. The right side overlap seems to be due to the whole ambiguous width char as mentioned
Daniel Gordon
@DanielGGordon

So the ambiguous width I could fix with forcing Mintty to great them as double-width. I found it mentioned here but not really sure what to do with it.

I need to set a different locale?

mintty
@mintty
1. The prompt is likely created with the "\$PS1" variable. Send me its contents (uninterpreted, e.g. by attaching the respective line from your profile script that sets it); or: create a mintty log file with the prompt included.
1. The identified character is neither double-width nor ambiguous-width so the mechanism you refer to will not work.
Daniel Gordon
@DanielGGordon
So I have that for you - but I also noticed that the '%' symbol actually will cut off the glyph. Example:
And the prompt value i found was PROMPT='%f%b%k%K{yellow} %F{black%}%f %F{blac k}7.37G %k%F{yellow}<b0>%f '. This comes from Powerlevel9k.
@mintty In the prompt value above, the box in front of %f is /uF0E4
mintty
@mintty
You must be using some non-standard shell, I'm not familiar with those %f shortcuts. Please make a terminal log.
Daniel Gordon
@DanielGGordon
It's oh-my-zsh. PS is:
%f%b%k%K{yellow} %F{black%}%f %F{black}7.12G %K{green}%F{yellow} %F{black%} %f %F{black}0.52 %K{blue}%F{green} %F{black%}%f %F{black}~/.aws %k%F{blue}%f
Christo Kotze
@onaforeignshore
the shell is zsh and the codes are shortcuts for \e48;5;<K>m and \e38;5;<F>m
mintty
@mintty
Apparently the issue is that overhanging or overlapping rendering only works within one "run", i.e. sequence of characters being output in the same chunk. This only applies to a sequence of characters with the same character attributes.
You set black foreground directly before the glyph and reset it directly afterwards, so that cannot work. If you include the surrounding spaces in the black foreground section, it will work.
Compare these:
echo -e "\e[44m \e[31m\e[39m \e[m"
echo -e "\e[31m\e[44m  \e[m"
mintty
@mintty
For the records: the week after my previous comment, I implemented advanced italic overhang handling. Released in 2.7.6.
@alacrity26

hi, when I was trying to install gnupg (after installing cygwin), this error popped up:

PS C:\Windows\system32> cyg-get gnupg
Attempting to install cygwin packages: gnupg
C:\ProgramData\chocolatey\lib\cyg-get\tools\cyg-get.ps1 : Please ensure you have Cygwin installed.
To install please call ‘choco install cygwin’ (optionally add -y to autoconfirm).
ERROR: This command cannot be executed due to the error: The system cannot find the file specified.
At line:1 char:2

• & <<<< 'C:\ProgramData\chocolatey\lib\cyg-get\tools\cyg-get.ps1' gnupg
• CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
• FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,cyg-get.ps1
Referred and tried suggestions on: chocolatey/chocolatey-coreteampackages#176 , and some other suggested links in it, however hasn't worked.
I referred and tries suggestions on this page: Referred and tried suggestions on: chocolatey/chocolatey-coreteampackages#176 , and some other suggested links in it, however hasn't worked.
Any suggestions how to understand what could be wrong here ?
mintty
@mintty
What would that have to do with mintty?
Biswapriyo Nath
@Biswa96
Let's talk about the mintty for Windows Store .
mintty
@mintty
OK.
Biswapriyo Nath
@Biswa96
Do you solve that pvk2pfx.exe problem? I think why not you just publish the appx and then write all the readme and build procedure.
mintty
@mintty
1. No.
1. Have you checked whether it's actually possible to publish an appx with a test certificate? I'm not sure, and I was assuming we're going to publish instruction how to build an appx package with the user's own test certificate...
1. I feel you're eager to get forward but I'm busy with work and other stuff too, so if you want my feedback, please have some patience :/
(4) Once we're done, maybe we can arrange some sponsored certificate; and I'll gladly leave it to you to publish the package then and earn the reputation...
Biswapriyo Nath
@Biswa96
I thought you will going to publish in Windows store. Ok, as you wish, I shall concentrate on writing the instructions. I don't want to earn reputation. I just love coding....
Biswapriyo Nath
@Biswa96
As I said I'm making a batch script that make that appx automatically. But the msbuild from Windows\FrameWork shows some error. So one has to install visual studio. I'm now depending on Appveyor CI. See this ://stackoverflow.com/q/43065264/8928481
nalostta
@nalostta
hi, how can export multiple paths in msys?
I am working on a 64-bit windows 10 machine, i was trying to build libopencm3 but for it i needed both python and gcc cross compiler
but whenever i try to 'export path' for one, i loose the other ...
mintty
@mintty
This is absolutely not a mintty question.
Brian Peiris
@brianpeiris
Hello. When I run the mintty.exe that comes with Git Bash, I see this window: https://i.imgur.com/FRZYZ2k.png
Where is that defined in the mintty source code, and how do I get mintty to choose a specific shell by default?
David Macek
@elieux
@brianpeiris, this is a downstream patch.
Upstream developers don't know about it.