Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.11k stars 840 forks source link

Certain unicode characters cannot be displayed. #623

Open Bug-Reaper opened 3 years ago

Bug-Reaper commented 3 years ago

Screenshot_2020-10-20_22-25-44

Alacritty - Left.

Cool-Retro-Term - Center.

Cool-Retro-Term Settings - Right.

So even though Alacritty and Cool-Retro-Term are using the same font (nerdfonts sauce-code-pro which contains a ton of glyphs) Cool Retro Term straight up refuses to display some of the of the unicode characters. In fact any attempt to paste them in converts the unicode char to it's octal parts and refuses to display.

Even if I print craft the unicode glyph from raw octal, printf still can't display the glyph which should be supported by the font.

alacritty octal test (sauce code pro - nerdfonts)

alacritty

cool-retro-term octal test (sauce code pro - nerdfonts)

crt4

They're basically just being ommitted entirely. Not sure what's up because I've seen screenshots of people using these fonts to get these characters. Figured I'd share my findings to see if anyone has any insight. Might be good to try some regression here.

Bug-Reaper commented 3 years ago

Solved :+1: needed to set my locale to UTF-8: Screenshot_2020-10-23_00-51-16 Screenshot_2020-10-23_01-13-07

This command does it for me:

LC_ALL="en_US.utf8" cool-retro-term

Pro-Tip, you can see what locales you have installed with locale -a.

Should I PR in a note to the documentation, or is this undocumentably stupid?

rodrigo-ceccato commented 2 years ago

IMO this should be documented, as it is hard to track

catoni0 commented 8 months ago

Solved 👍 needed to set my locale to UTF-8: Screenshot_2020-10-23_00-51-16 Screenshot_2020-10-23_01-13-07

This command does it for me:

LC_ALL="en_US.utf8" cool-retro-term

Pro-Tip, you can see what locales you have installed with locale -a.

Should I PR in a note to the documentation, or is this undocumentably stupid?

This can be added to desktop file: sudo nano /usr/share/applications/cool-retro-term.desktop

then:

[Desktop Entry]
Comment=Use the command line the old way
Exec=LC_ALL="en_US.utf8" cool-retro-term
GenericName=Terminal emulator
Icon=cool-retro-term
Name=Cool Retro Term
Categories=System;TerminalEmulator;
StartupNotify=true
Terminal=false
Type=Application
Keywords=shell;prompt;command;commandline;