Swordfish90 / cool-retro-term

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

Wrong display of Arabic Language #714

Open kamalsy opened 2 years ago

kamalsy commented 2 years ago

Arabic is RTL Language. but in Cool Retro Term words are displayed in reverse. example: the word 'مرحبا' displayed as: 'ابحرم'. changing the font didn't help. could you please fix this. I really want this terminal to be my default.

noureddin commented 2 years ago

CRT uses a separately maintained fork of the QML port of qtermwidget (Konsole), which supports Bidirectional text, but this support is disabled by default.

Because the author doesn't seem to be active currently, I think it's best to explain how to enable it manually, until it's fixed upstream:

  1. Update your system packages (apt full-upgrade for example). This ensures you don't have incompatible versions of libraries.

  2. Installs the dependencies in the build instructions for Linux or macOS.

  3. Under the Compile heading, do the git clone and cd commands, then before qmake do this:

    sed -i '/^,_bidiEnabled/s/false/true/' qmltermwidget/lib/TerminalDisplay.cpp
  4. Continue the instructions (qmake, make, etc).

  5. Link (don't move) the resulting cool-retro-term to somewhere in your $PATH.