Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Colours not showing up properly. #43

Closed
shubham1172 opened this issue Jul 7, 2018 · 4 comments
Closed

Colours not showing up properly. #43

shubham1172 opened this issue Jul 7, 2018 · 4 comments

Comments

@shubham1172
Copy link

The color of the prompt is always like this no matter what theme I choose.

System specs
NAME="Ubuntu"
VERSION="18.04 LTS (Bionic Beaver)"
FLAVOUR="Kubuntu"

@nbedos
Copy link
Owner

nbedos commented Jul 7, 2018

Could you record a .cast file with termtosvg record and copy paste the content of the file here?

@shubham1172
Copy link
Author

Here's the output of $ terminal record:

{"version": 2, "width": 80, "height": 24}
[0.0, "o", "\u001b]0;shubham1172@shubham1172-home: ~\u0007\u001b[01;32mshubham1172@shubham1172-home\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[2.905648, "o", "p"]
[3.193956, "o", "s"]
[3.429897, "o", "\r\n"]
[3.436399, "o", "  PID TTY          TIME CMD\r\n"]
[3.436528, "o", " 5736 pts/3    00:00:00 bash\r\n 5747 pts/3    00:00:00 ps\r\n"]
[3.439023, "o", "\u001b]0;shubham1172@shubham1172-home: ~\u0007\u001b[01;32mshubham1172@shubham1172-home\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[4.022715, "o", "l"]
[4.224674, "o", "s"]
[4.474844, "o", "\r\n"]
[4.476189, "o", " \u001b[0m\u001b[01;34mAndroid\u001b[0m     \u001b[01;34mDownloads\u001b[0m          \u001b[01;34mPictures\u001b[0m   \u001b[01;34mTemplates\u001b[0m\r\n \u001b[01;34mDesktop\u001b[0m     \u001b[01;34mgoogle-cloud-sdk\u001b[0m   \u001b[01;34mPublic\u001b[0m     \u001b[01;34mVideos\u001b[0m\r\n \u001b[01;34mDocuments\u001b[0m   \u001b[01;34mMusic\u001b[0m              \u001b[01;34mR\u001b[0m         \u001b[01;34m'VirtualBox VMs'\u001b[0m\r\n"]
[4.476802, "o", "\u001b]0;shubham1172@shubham1172-home: ~\u0007\u001b[01;32mshubham1172@shubham1172-home\u001b[00m:\u001b[01;34m~\u001b[00m$ "]
[5.171118, "o", "exit\r\n"]

@nbedos
Copy link
Owner

nbedos commented Jul 7, 2018

Thanks. Your prompt uses a bold font so termtosvg displays it with bright colors (color8 to color15 of the color themes defined in ~/.config/termtosvg/termtosvg.ini). There are two solutions:

  • Tweak a color theme so that color8 through color15 look like what you want
  • If you don't care about bright colors, remove them altogether. For example you could add the following theme to the configuration file:
[solarized-dark-8]
foreground = #93a1a1
background = #002b36
color0 = #002b36
color1 = #dc322f
color2 = #859900
color3 = #b58900
color4 = #268bd2
color5 = #6c71c4
color6 = #2aa198
color7 = #93a1a1

and then call termtosvg --theme solarized-dark-8.

Let me know if it fixes your problem!

@shubham1172
Copy link
Author

Great! It fixed my problem! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants