Bug#972832: dialog: can't change menu border lines [SOLVED]

2020-11-27 Thread Ennio-Sr
Oops...just to the add the aimed 'SOLVED'
Ennio

-- 
[Perché usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.  \\?//
 Fà qualche cosa di cui non sei capace!"  (diceva Henry Miller) (°|°)
[Why use Win$ozz (I say) if ... "even a fool can do that.   .)=(. 
 Do something you aren't good at!" (as Henry Miller used to say)]  /_\ 



Bug#972832: dialog: can't change menu border lines

2020-11-27 Thread ennio
* Thomas Dickey  [221120, 13:45]:
> On Thu, Oct 29, 2020 at 05:42:05PM +0100, ennio wrote:
> > * Thomas Dickey  [281020, 20:09]:
> ...
> > Ok, I'm enclosing the test-menu file 'p_menu.sh' and a shortned
> > '.dialogrc' used for my many tests. I tried with a full .dialogrc file
> > as well with the same identical results...
> ...
> > # --
> > 
> > # Run-time configuration file for dialog
> > #
> > # Automatically generated by "dialog --create-rc "
> > #
> > [big cut]
> 
> The basic problem is that there are color combinations which aren't set.
> Referring to samples/debian.rc, these at the end of the file are the
> missing settings that deal with the border colors:
> 
>   # Dialog box border2 color
>   border2_color = dialog_color [***] -> for upper left inner 
> box
> 
>   # Input box border2 color
>   inputbox_border2_color = dialog_color
> 
>   # Search box border2 color
>   searchbox_border2_color = dialog_color
> 
>   # Menu box border2 color
>   menubox_border2_color = dialog_color [***] -> for lower right extl. 
> box
> 
> In particular, the last one is what your configuration needs.

I had to employ both the first and last line, as shown above, but now
everything is as I wanted it to be.

> 
> Offhand, I believe those were introduced here:
> 
> 2011/10/18
>   + add color table entries for secondary borders, i.e., the ones that
> are normally drawn with the dialog's text-colors (Debian #641168).
> 

Yes, that's correct

> Thomas E. Dickey 
> https://invisible-island.net
> ftp://ftp.invisible-island.net

Thomas, I thank you very much indeed and very deeply for your help 
while blaming myself for not having been so 'quick minded' as to look
into old bugs and changelogs and to run  when
updating the dialog pkg.

Alas! That's what happens when we become elders...

Have my best regards and thanks again,
   Ennio

-- 
[Perché usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.  \\?//
 Fà qualche cosa di cui non sei capace!"  (diceva Henry Miller) (°|°)
[Why use Win$ozz (I say) if ... "even a fool can do that.   .)=(. 
 Do something you aren't good at!" (as Henry Miller used to say)]  /_\ 



Bug#972832: dialog: can't change menu border lines

2020-11-22 Thread Thomas Dickey
On Thu, Oct 29, 2020 at 05:42:05PM +0100, ennio wrote:
> * Thomas Dickey  [281020, 20:09]:
...
> Ok, I'm enclosing the test-menu file 'p_menu.sh' and a shortned
> '.dialogrc' used for my many tests. I tried with a full .dialogrc file
> as well with the same identical results...
...
> # --
> 
> # Run-time configuration file for dialog
> #
> # Automatically generated by "dialog --create-rc "
> #
> #
> # Types of values:
> #
> # Number -  
> # String -  "string"
> # Boolean-  
> # Attribute  -  (foreground,background,highlight?)
> #
> 
> 
> # Shadow dialog boxes? This also turns on color.
> use_shadow = Off
> 
> # Turn color support ON or OFF
> use_colors = ON 
> 
> # Screen color - NB: il secondo colore determina il background
> screen_color = (CYAN,BLACK,ON) 
> 
> # Dialog box color 
> dialog_color = (BLACK,BLACK,ON) 
> #okok(CYAN,BLACK,ON)
> 
> # Dialog box title color
> title_color = (RED,BLACK,ON)
> 
> # Dialog box border color - NB: interessa le righe super., infer. e a sx
> border_color = (CYAN,BLACK,ON)
> 
> # Menu box color
> menubox_color = (cyan,black,on)
> 
> # Menu box border color -> influenza angolo basso dx -> se si commenta,
> # sballano i colori ma le righe restano lì
> menubox_border_color = (CYAN,BLACK,ON)
> 
> # Item color -> influenza la descrizione dgli item, a destra
> item_color = (CYAN,BLACK,ON) 
> 
> # Selected item color
> item_selected_color = (white,red,on) 
> 
> # Tag color -> influenza la parte sx degli item
> tag_color = (cyan,black,on)
> 
> # Selected tag color
> tag_selected_color = (YELLOW,BLUE,ON)
> 
> # Tag key color
> tag_key_color = (RED,WHITE,OFF)
> 
> # Selected tag key color
> tag_key_selected_color = (white,red,on)
> 
> # Up arrow color
> uarrow_color = (GREEN,WHITE,ON)
> 
> # Down arrow color
> darrow_color = (GREEN,WHITE,ON)
> 
> # Item help-text color
> itemhelp_color = (WHITE,BLACK,OFF)
> 

The basic problem is that there are color combinations which aren't set.
Referring to samples/debian.rc, these at the end of the file are the
missing settings that deal with the border colors:

# Dialog box border2 color
border2_color = dialog_color

# Input box border2 color
inputbox_border2_color = dialog_color

# Search box border2 color
searchbox_border2_color = dialog_color

# Menu box border2 color
menubox_border2_color = dialog_color

In particular, the last one is what your configuration needs.

Offhand, I believe those were introduced here:

2011/10/18
+ add color table entries for secondary borders, i.e., the ones that
  are normally drawn with the dialog's text-colors (Debian #641168).

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature


Bug#972832: dialog: can't change menu border lines

2020-10-28 Thread Thomas Dickey
On Sun, Oct 25, 2020 at 10:44:46PM +0100, Ennio-Sr wrote:
> In reply to:
> > 
> > From: Thomas Dickey 
> > To: 972...@bugs.debian.org
> > Cc: 972832-submit...@bugs.debian.org
> > Subject: Re: Bug#972832: dialog: can't change menu border lines
> > Date: Sun, 25 Oct 2020 16:27:13 -0400
> > 
> > [Message part 1
> > <https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=972832;msg=10>
> > (text/plain, inline)]
> > 
> > On Sat, Oct 24, 2020 at 06:17:39PM +0200, Ennio-Sr wrote:
> > > Package: dialog
> > > Version: 1.3-20160828-2
> > > Severity: minor
> > >
> > > Hi all!
> > >
> > > As I like to work on virtual console with black background, when I try to
> > > use dialog with my personalized colors (and a .dialogrc file) the 'upper
> > > left inner box'  and 'lower right external box' lines appear as black
> > > lines on white background, whereas the remaining lines come out on a black
> > > background as the whole dialog background.
> > > Deleting the .dialogrc file the corner lines are still in differnet
> > > colors, but on the same 'grey' background.
> > 
> > I'd start by seeing if this option helps:
> > 
> >--no-shadow
> >   Suppress  shadows that would be drawn to the right and bottom 
> > of
> >   each dialog box.
> > 
> > -- 
> > Thomas E. Dickey
> > https://invisible-island.netftp://ftp.invisible-island.net
> 
> Thanks for your reply! 
> Unluckily the --no-shadow option doesn't solve the problem as my
> foreground is black.
> But, if I delete the .dialogrc file the whole screen foreground is
> blue. In this case I can see that the --no-shadow eliminates the right
> end corner (black) shadow but not the problem described above.
> 
> Afaic understand, in the dialog structure the border lines are written
> as 'black on white fg' which does not go well on my black background.
> Perhaps I should modify some of the dialog sources files but I don't
> know how and which one to adjust...
> 
> Regards,
>   Ennio
> 
> PS: If necessary I could send a copy of the script I'm testing with an
> abridged .dialogrc. But where to send it? As an attachement or within a
> massage (with '<< EOF - EOF')?

attachments are good, because they can be saved without loss of detail.

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature


Bug#972832: dialog: can't change menu border lines

2020-10-25 Thread Ennio-Sr
In reply to:
> 
> From: Thomas Dickey 
> To: 972...@bugs.debian.org
> Cc: 972832-submit...@bugs.debian.org
> Subject: Re: Bug#972832: dialog: can't change menu border lines
> Date: Sun, 25 Oct 2020 16:27:13 -0400
> 
> [Message part 1
> <https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=972832;msg=10>
> (text/plain, inline)]
> 
> On Sat, Oct 24, 2020 at 06:17:39PM +0200, Ennio-Sr wrote:
> > Package: dialog
> > Version: 1.3-20160828-2
> > Severity: minor
> >
> > Hi all!
> >
> > As I like to work on virtual console with black background, when I try to
> > use dialog with my personalized colors (and a .dialogrc file) the 'upper
> > left inner box'  and 'lower right external box' lines appear as black
> > lines on white background, whereas the remaining lines come out on a black
> > background as the whole dialog background.
> > Deleting the .dialogrc file the corner lines are still in differnet
> > colors, but on the same 'grey' background.
> 
> I'd start by seeing if this option helps:
> 
>--no-shadow
>   Suppress  shadows that would be drawn to the right and bottom of
>   each dialog box.
> 
> -- 
> Thomas E. Dickey
> https://invisible-island.netftp://ftp.invisible-island.net

Thanks for your reply! 
Unluckily the --no-shadow option doesn't solve the problem as my
foreground is black.
But, if I delete the .dialogrc file the whole screen foreground is
blue. In this case I can see that the --no-shadow eliminates the right
end corner (black) shadow but not the problem described above.

Afaic understand, in the dialog structure the border lines are written
as 'black on white fg' which does not go well on my black background.
Perhaps I should modify some of the dialog sources files but I don't
know how and which one to adjust...

Regards,
  Ennio

PS: If necessary I could send a copy of the script I'm testing with an
abridged .dialogrc. But where to send it? As an attachement or within a
massage (with '<< EOF - EOF')?

-- 
[Perché usare Win$ozz (dico io) se ..."anche uno sciocco sa farlo.  \\?//
 Fà qualche cosa di cui non sei capace!"  (diceva Henry Miller) (°|°)
[Why use Win$ozz (I say) if ... "even a fool can do that.   .)=(. 
 Do something you aren't good at!" (as Henry Miller used to say)]  /_\ 



Bug#972832: dialog: can't change menu border lines

2020-10-25 Thread Thomas Dickey
On Sat, Oct 24, 2020 at 06:17:39PM +0200, Ennio-Sr wrote:
> Package: dialog
> Version: 1.3-20160828-2
> Severity: minor
> 
> Hi all!
> 
> As I like to work on virtual console with black background, when I try to
> use dialog with my personalized colors (and a .dialogrc file) the 'upper
> left inner box'  and 'lower right external box' lines appear as black
> lines on white background, whereas the remaining lines come out on a black
> background as the whole dialog background.
> Deleting the .dialogrc file the corner lines are still in differnet
> colors, but on the same 'grey' background.

I'd start by seeing if this option helps:

   --no-shadow
  Suppress  shadows that would be drawn to the right and bottom of
  each dialog box.

-- 
Thomas E. Dickey 
https://invisible-island.net
ftp://ftp.invisible-island.net


signature.asc
Description: PGP signature


Bug#972832: dialog: can't change menu border lines

2020-10-24 Thread Ennio-Sr
Package: dialog
Version: 1.3-20160828-2
Severity: minor

Hi all!

As I like to work on virtual console with black background, when I try to
use dialog with my personalized colors (and a .dialogrc file) the 'upper
left inner box'  and 'lower right external box' lines appear as black
lines on white background, whereas the remaining lines come out on a black
background as the whole dialog background.
Deleting the .dialogrc file the corner lines are still in differnet
colors, but on the same 'grey' background.

What can I do to correct these results?
Thanks for your attention,
   Ennio


PS: My PC is quite old and I'm afraid there would be no room to upgrade
and install a newer dialog version


-- System Information:
Debian Release: 9.13
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-13-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages dialog depends on:
ii  debianutils   4.8.1.1
ii  libc6 2.24-11+deb9u4
ii  libncursesw5  6.0+20161126-1+deb9u2
ii  libtinfo5 6.0+20161126-1+deb9u2

dialog recommends no packages.

dialog suggests no packages.

-- no debconf information