🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user
3 messages
3 total messages Started by Robert Heller Sat, 28 Nov 2026 15:50
Terminal dialog box programs: (old) dialog vs (new) whiptail
#664
Author: Robert Heller
Date: Sat, 28 Nov 2026 15:50
21 lines
2833 bytes
I have a problem with whiptail: it appears to be engineered to only work
*properly* with a terminal that can display colors, such as an xterm with +cm.
For me this is a problem: *I* detest colorized terminals so I run my xterms
with the -cm option (color mode disabled).  Various programs (including apt)
use whiptail to present dialog boxes, but on my terminals, these dialog boxes
are not useable because I have color mode disabled.  I just tested things and
the older dialog program is able to create workable dialog boxes on xterms
with color mode disabled.

My question is:  Is there some hack (environment variable? something in
/etc/alternitives, etc.) that can be done to make the program that currently
use whiptail use dialog instead?  Or is there something than can make whiptail
behave like dialog?  Or behave better when run on an xterm with color mode
disabled?  Or am I just screwed?

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services
Re: Terminal dialog box programs: (old) dialog vs (new) whiptail
#665
Author: Jan Claeys
Date: Sat, 28 Nov 2026 16:30
31 lines
2902 bytes
On Sat, 2026-11-28 at 10:41 -0500, Robert Heller wrote:
> I have a problem with whiptail: it appears to be engineered to only
> work *properly* with a terminal that can display colors, such as an
> xterm with +cm. For me this is a problem: *I* detest colorized
> terminals so I run my xterms with the -cm option (color mode
> disabled).  Various programs (including apt)

I don't think APT uses whiptail/dialog, but debconf does, which is
probably what you see when you use APT.

> use whiptail to present dialog boxes, but on my terminals, these
> dialog boxes  are not useable because I have color mode disabled.  I
> just tested things and the older dialog program is able to create
> workable dialog boxes on xterms with color mode disabled.
> 
> My question is:  Is there some hack (environment variable? something
> in /etc/alternitives, etc.) that can be done to make the program that
> currently use whiptail use dialog instead?  Or is there something
> than can make whiptail behave like dialog?  Or behave better when run
> on an xterm with color mode disabled?  Or am I just screwed?

Debconf has an environment variable DEBCONF_FORCE_DIALOG which should
do what you want for debconf (not for other programs obviously). See
the debconf(7) manpage for more information.


-- 
Jan Claeys

(please don't CC me when replying to the list)
Re: Terminal dialog box programs: (old) dialog vs (new) whiptail
#666
Author: Robert Heller
Date: Sat, 28 Nov 2026 16:40
38 lines
3643 bytes
OK, I will look into that.

At Sat, 28 Nov 2026 17:19:51 +0100 Jan Claeys <lists@janc.be> wrote:

>
> On Sat, 2026-11-28 at 10:41 -0500, Robert Heller wrote:
> > I have a problem with whiptail: it appears to be engineered to only
> > work *properly* with a terminal that can display colors, such as an
> > xterm with +cm. For me this is a problem: *I* detest colorized
> > terminals so I run my xterms with the -cm option (color mode
> > disabled).  Various programs (including apt)
>
> I don't think APT uses whiptail/dialog, but debconf does, which is
> probably what you see when you use APT.
>
> > use whiptail to present dialog boxes, but on my terminals, these
> > dialog boxes  are not useable because I have color mode disabled.  I
> > just tested things and the older dialog program is able to create
> > workable dialog boxes on xterms with color mode disabled.
> >
> > My question is:  Is there some hack (environment variable? something
> > in /etc/alternitives, etc.) that can be done to make the program that
> > currently use whiptail use dialog instead?  Or is there something
> > than can make whiptail behave like dialog?  Or behave better when run
> > on an xterm with color mode disabled?  Or am I just screwed?
>
> Debconf has an environment variable DEBCONF_FORCE_DIALOG which should
> do what you want for debconf (not for other programs obviously). See
> the debconf(7) manpage for more information.
>
>

--
Robert Heller             -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller@deepsoft.com       -- Webhosting Services
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads