You are not logged in.

#1 2020-12-07 08:12:48

horo
Member
Registered: 2016-03-13
Posts: 37

Truecolor support in terminal

I was looking to play around with brow.sh when i found that the terminal summoned by the super+t does not have access to all the colors. X-terminal-emulator, Terminal emulator, and rxvt color unicode terminal are all apparently the same thing and suffer the same issue. Applications > System > Lxterminal however appears to function properly.

So what gives? I'm assuming by the colors i generate from running a script it has something to do with Lithium theme. I tried removing ~/.config/terminator/config and restarting but that didn't seem to change anything. can I turn this off somewhere?

Offline

#2 2020-12-07 09:02:29

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 912

Re: Truecolor support in terminal

Hi horo, Welcome to Bunsenlabs!

horo wrote:

X-terminal-emulator, Terminal emulator, and rxvt color unicode terminal are all apparently the same thing and suffer the same issue. Applications > System > Lxterminal however appears to function properly.

No, they are related bot not the same.
"Terminal emulator" is the name for all applications that emualete the old time terminal.It can be the "Lxterminal" (command: lxterminal) or the rxvt-unicode terminal (command: rxvt-unicode).

command "x-terminal-emulator" is a command to call the terminal that is to be default terminal, just as command x-www-browser is to start your default internet browser.

In a newly installed Lithium Bunsenlab, your default terminal should be lxterminal. However, you can easily change that. In a terminal issue:

sudo galternatives

You will get an application with two panes. In the left pane, marked "Program", scroll down untill you find "x-terminal-emulator". Now in the right pane, mark your desired default value.
When you

Last edited by rbh (2020-12-07 09:04:21)


// Regards rbh

Offline

#3 2020-12-07 14:02:17

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,183
Website

Re: Truecolor support in terminal

Offline

#4 2020-12-07 15:40:07

horo
Member
Registered: 2016-03-13
Posts: 37

Re: Truecolor support in terminal

Thank you
I ran galternatives to look at what the defaults are set to. X-terminal-emulator calls lxterminal
lxterminal should support trucolor and DOES support truecolor when called from Application>System>lxemulator

Why does it not support truecolor all the time? Where would it's config file live?

edit:

I have two laptops running the latest Lithium build. The 64 bit version does NOT have this problem. I just ran the color-test script and it had no issues.
The laptop with issues is using the 32 bit build since it's old. Don't know what the difference would be but hopefully that sheds some light on things

Last edited by horo (2020-12-07 18:19:28)

Offline

#5 2020-12-09 07:27:59

ohnonot
...again
Registered: 2015-09-29
Posts: 5,197
Website

Re: Truecolor support in terminal

Is this really called Truecolor? I thought that was akin to calling /dev/sda1 "The C: drive".(*)
Why not just call the number of colours, or the bitness?
Anyhow, I know this problem.
You need to use a different terminal emulator.

(*): OK, putting "terminal emulator truecolor" in my package manager's search function pulls up quite a few results. Too many, but I know that atleast these do what you want:
alacritty
kitty

Possibly also:
xterm
gnome-terminal
konsole
terminology
xfce4-terminal

and maybe even rxvt-unicode when compiled accordingly.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#6 2020-12-10 04:05:39

horo
Member
Registered: 2016-03-13
Posts: 37

Re: Truecolor support in terminal

I have no doubt installing one of the numerous other terminals out there would give me the results I want.
My concern now is why can't I make lxterminal do what I know it can do. I know i have a limited color pallet and those colors are directly tied to the lithium theme. I think i'll try changing the theme around and see if the color pallet changes with it.
Does anyone know where the config file for lxterminal would be? I assume there is something in my home dir, but would there be anything else on the system?

Offline

#7 2020-12-10 07:00:04

ohnonot
...again
Registered: 2015-09-29
Posts: 5,197
Website

Re: Truecolor support in terminal

OK, I was wrong, according to the docs brow.sh should at least show something even when "TrueCOlor" is not supported.
I see some "Temporarily offline" messages on their main page, maybe that's the answer to your question?
In any case you should take some time to read the docs & set it up properly.


Please use CODE tags for code.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Offline

#8 2020-12-10 07:21:16

damo
....moderator....
Registered: 2015-08-20
Posts: 6,498

Re: Truecolor support in terminal

horo wrote:

...
Does anyone know where the config file for lxterminal would be? I assume there is something in my home dir, but would there be anything else on the system?

In the usual place for config files: ~/.config/lxterminal/lxterminal.conf


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#9 2020-12-10 08:33:35

horo
Member
Registered: 2016-03-13
Posts: 37

Re: Truecolor support in terminal

I think I've made progress.

sudo galternatives

tells me that the x-terminal-emulator is set to

/usr/bin/lxterminal

But when I went to poke around the .conf (thank you damo) file nothing changed unless i called lxterminal from another terminal

so then I did the following-

horo@little:~$ ls -l $(which x-terminal-emulator)
lrwxrwxrwx 1 root root 37 Dec  4 21:59 /usr/bin/x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
horo@little:~$ ls -l /etc/alternatives/x-terminal-emulator
lrwxrwxrwx 1 root root 14 Dec  4 21:59 /etc/alternatives/x-terminal-emulator -> /usr/bin/urxvt
horo@little:~$ 

so it seems galternative is lying to me about what terminal I'm actually calling when I use x-terminal-emulator

Offline

#10 2020-12-11 06:40:35

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,555
Website

Re: Truecolor support in terminal

^That is a bit strange. How about this?

update-alternatives --display x-terminal-emulator

...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#11 2020-12-12 05:45:09

horo
Member
Registered: 2016-03-13
Posts: 37

Re: Truecolor support in terminal

horo@little:~$ update-alternatives --display x-terminal-emulator 
x-terminal-emulator - auto mode
  link best version is /usr/bin/urxvt
  link currently points to /usr/bin/urxvt
  link x-terminal-emulator is /usr/bin/x-terminal-emulator
  slave x-terminal-emulator.1.gz is /usr/share/man/man1/x-terminal-emulator.1.gz
/usr/bin/lxterminal - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/lxterminal.1.gz
/usr/bin/urxvt - priority 20
  slave x-terminal-emulator.1.gz: /usr/share/man/man1/urxvt.1.gz

This appears to be accurate.

Offline

#12 2020-12-12 07:27:56

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,555
Website

Re: Truecolor support in terminal

Is galternatives still showing lxterminal?
If so, try changing it to urxvt, exit, check update-alternatives, then go back to galternatives and set it to lxterminal again (if that's the terminal you want).
Also, does galternatives show the other alternatives correctly?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#13 2020-12-12 11:51:18

rbh
Member
From: Sweden/Vasterbotten/Rusfors
Registered: 2016-08-11
Posts: 912

Re: Truecolor support in terminal

@horo, if the above does not fix it, you can edit the preferences yourself.

/usr/bin/x-terminal-emulator, is an link to /etc/alternatives/x-terminal-emulator

command ls -l x-terminal-emulator in /usr/bin
should show: x-terminal-emulator -> /etc/alternatives/x-terminal-emulator

/etc/alternatives/x-terminal-emulator, is a link to prefered terminal.

https://wiki.debian.org/SymLink, is an introduction to symbolic links.
With mc, you can more easily create/edit links.

Last edited by rbh (2020-12-12 11:54:56)


// Regards rbh

Offline

#14 2020-12-13 00:31:25

horo
Member
Registered: 2016-03-13
Posts: 37

Re: Truecolor support in terminal

johnraff wrote:

Is galternatives still showing lxterminal?
If so, try changing it to urxvt, exit, check update-alternatives, then go back to galternatives and set it to lxterminal again (if that's the terminal you want).
Also, does galternatives show the other alternatives correctly?

I did as you instructed and galternatives and update-alternatives are now showing the same thing
I reset the key bindings from 'lxterminal' to 'x-terminal-emulator' and double checked the symbolic link of /etc/alternatives/x-terminal-emulator
Everything now points to lxterminal and calling x-terminal-emulator now drops me into a terminal with truecolor support

thank you everyone for your help this one is solved. Why galternative showed wrong info at the start i don't know, but it's all well now.

Offline

#15 2020-12-13 06:57:35

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 7,555
Website

Re: Truecolor support in terminal

rbh wrote:

@horo, if the above does not fix it, you can edit the preferences yourself.
/usr/bin/x-terminal-emulator, is an link to /etc/alternatives/x-terminal-emulator
command ls -l x-terminal-emulator in /usr/bin
should show: x-terminal-emulator -> /etc/alternatives/x-terminal-emulator
/etc/alternatives/x-terminal-emulator, is a link to prefered terminal.

@rbh, while agreeing that an understanding of symlinks is a very good thing, in this particular case I don't think it's advisable to go in and manually adjust the symlinks associated with the Debian alternatives system. It's a somewhat complicated arrangement and

man update-alternatives

describes how it works and how to adjust it. That's the way to change the preferred terminal aliased by x-terminal-emulator IMO.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

Board footer

Powered by FluxBB