3 ms·
Does anyone know how to get Korean text to display consistently on macOS in the terminal? If you create a file in Finder with a hangul name, by default ls in i
by ubercow13 3y ago
Does anyone know how to get Korean text to display consistently on macOS in the terminal?
If you create a file in Finder with a hangul name, by default ls in iTerm2 will display the name incorrectly, with the composite syllables expanded out into separate characters. There is an option in iTerm2 to 'normalise unicode' which corrects this issue if set to HFS or NFC (if I remember right). This mimics the behaviour of Terminal.app.
However, different interactive terminal apps seem to have different expectations of terminal behaviour for this form of unicode hangul. With the 'normalise' setting off, fzf will corrupt the display when showing hangul. But with it on, vim/neovim will corrupt the display when navigating lines with hangul text.
It seems there is no way to get consistent and user-friendly hangul handling in the terminal on macOS, but I'm not sure who's at fault (except Apple of course).
- glenngillen 3y agoGhostty seems to be adding a lot of improvements for Korean https://mitchellh.com/writing/ghostty-devlog-005 https://mitchellh.com/writing/ghostty-devlog-005
- bdhcuidbebe 3y agotry weztern, it has good font handling and macos https://wezfurlong.org/wezterm/ https://wezfurlong.org/wezterm/