Discussion:
dialog colors
(too old to reply)
f***@protonmail.com
2024-08-18 16:00:02 UTC
Permalink
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
Charles Curley
2024-08-18 18:00:01 UTC
Permalink
On Sun, 18 Aug 2024 15:58:09 +0000
Post by f***@protonmail.com
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
You will have to provide more information before anyone can answer that.

Which desktop/window manager? KDE, XFCE, etc.?

If your program runs in a terminal, which terminal emulation program?
rxvt, xfce4-terminal, etc.?
--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
f***@protonmail.com
2024-08-18 18:10:01 UTC
Permalink
Post by Charles Curley
On Sun, 18 Aug 2024 15:58:09 +0000
Post by f***@protonmail.com
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
You will have to provide more information before anyone can answer that.
Which desktop/window manager? KDE, XFCE, etc.?
If your program runs in a terminal, which terminal emulation program?
rxvt, xfce4-terminal, etc.?
debian 11
xfce
xterm
Nate Bargmann
2024-08-18 20:40:03 UTC
Permalink
Post by f***@protonmail.com
Post by Charles Curley
On Sun, 18 Aug 2024 15:58:09 +0000
Post by f***@protonmail.com
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
You will have to provide more information before anyone can answer that.
Which desktop/window manager? KDE, XFCE, etc.?
If your program runs in a terminal, which terminal emulation program?
rxvt, xfce4-terminal, etc.?
debian 11
xfce
xterm
By default Xterm has a different color palette than the Linux console.
A custom XResources file can be used to configure Xterm to very closely
match the console palette if desired. See:

https://www.n0nb.us/blog/2020/02/coping-with-color-on-the-linux-console-and-xterm-and-friends/

Programs like dialog that are based on Ncurses request a color from the
terminal but when the terminal is configured for some other hue, the
client programs have no control over that.

As my blog post shows, I like to unify the color schemes between the
console, Gnome Terminal, and Xterm.

If this is not your issue, then you'll need to consult the dialog
manual.

- Nate
--
"The optimist proclaims that we live in the best of all
possible worlds. The pessimist fears this is true."
Web: https://www.n0nb.us
Projects: https://github.com/N0NB
GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
Charles Curley
2024-08-18 21:30:02 UTC
Permalink
On Sun, 18 Aug 2024 15:35:02 -0500
Post by Nate Bargmann
Post by f***@protonmail.com
debian 11
xfce
xterm
By default Xterm has a different color palette than the Linux console.
A custom XResources file can be used to configure Xterm to very
https://www.n0nb.us/blog/2020/02/coping-with-color-on-the-linux-console-and-xterm-and-friends/
The original poster (OP) may find it simpler to install xfce4-terminal.
It has a nice GUI for configuring colors, including some pre-defined
color schemes. Edit -> Preferences -> Colors
--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
t***@tuxteam.de
2024-08-18 18:20:01 UTC
Permalink
Post by Charles Curley
On Sun, 18 Aug 2024 15:58:09 +0000
Post by f***@protonmail.com
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
You will have to provide more information before anyone can answer that.
Which desktop/window manager? KDE, XFCE, etc.?
I guess it is /usr/bin/dialog, from the same-named package. This would be
a ncurses program, although there seems to be an X incarnation.

Not installed on my box, so I can't currently try things (for the curious:
the man page is online here [1]). There seems to be a dialogrc init file,
I guess that's where to set things like colors.

Cheers

[1] https://manpages.debian.org/bookworm/dialog/dialog.1.en.html
--
t
d***@howorth.org.uk
2024-08-18 20:20:01 UTC
Permalink
Post by t***@tuxteam.de
Post by Charles Curley
On Sun, 18 Aug 2024 15:58:09 +0000
Post by f***@protonmail.com
is use dialog to create simple menus
it's always white background and blue text
how can i change the colors
[snip]
Post by t***@tuxteam.de
I guess it is /usr/bin/dialog, from the same-named package. This
would be a ncurses program, although there seems to be an X
incarnation.
Not installed on my box, so I can't currently try things (for the
curious: the man page is online here [1]). There seems to be a
dialogrc init file, I guess that's where to set things like colors.
Cheers
[1] https://manpages.debian.org/bookworm/dialog/dialog.1.en.html
The man page also mentions the --colors option, which appears to
control whether you can embed color control characters in the dialog
text.

Without more information from the OP it's difficult to go any further.
Loading...