Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread RVP

On Thu, 16 Sep 2021, Brian Buhrow wrote:


hello.  No.  the .lss file change doesn't work because there's no text 
rendered to
highlight.



That is odd, because with these things done, I now also get an
ASCII border around the pop-up window:

https://postimg.cc/s1Ls8mQ6

1. Use POSIX (US-ASCII) locale:

$ unset LANG LC_CTYPE LC_ALL LC_whatever

2. Use US-ASCII charset in lynx:

$ fgrep character_set= ~/.lynxrc
character_set=7 bit approximations (US-ASCII)

3. Use custom .lss file (attached):

$ lynx -lss=$HOME/.lynx.lss

-RVP# Setting the normal and default types lets us keep (almost) the same colors
# whether the terminal's default colors are white-on-black or black-on-white.
# It is not exact since the default "white" is not necessarily the same color
# as the ANSI lightgray, but is as close as we can get in a standard way.
#
# If you really want the terminal's default colors, and if lynx is built using
# ncurses' default-color support, remove these two lines:
normal: normal: lightgray:black
default:normal: white:black

# Normal type styles correspond to HTML tags.
#
# The next line (beginning with "em") means:  use bold if mono, otherwise
# brightblue on 
em: bold:   brightblue
strong: bold:   brightred
b:  bold:   red
i:  bold:   brightblue
a:  bold:   green
img:dim:brown
fig:normal: gray
caption:reverse:brown
hr: normal: yellow
blockquote: normal: brightblue
ul: normal: brown
address:normal: magenta
title:  normal: magenta
tt: dim:brightmagenta:  black
h1: bold:   yellow: blue
label:  normal: magenta
q:  normal: yellow: magenta
small:  dim:default
big:bold:   yellow
sup:bold:   yellow
sub:dim:gray
li: normal: magenta
code:   normal: cyan
cite:   normal: cyan

table:  normal: brightcyan
tr: bold:   brown
td: normal: default
br: normal: default

# Special styles - not corresponding directly to HTML tags
#   alert   - status bar, when message begins "Alert".
#   alink   - active link
#   normal  - default attributes
#   status  - status bar
#   whereis - whereis search target
#
#normal:normal:default:blue
alink:  reverse:yellow: black
status: reverse:yellow: blue
alert:  bold:   yellow: red
whereis:reverse+underline:  magenta:cyan
# currently not used
#value:normal:green

menu.bg:normal: black:  lightgray
menu.frame: normal: black:  lightgray
menu.entry: normal: lightgray:  black
menu.n: normal: red:gray
menu.active:reverse:yellow: black
menu.sb:normal: brightred:  lightgray

forwbackw.arrow:reverse
hot.paste:  normal: brightred:  gray

# Styles with classes -  etc.
ul.red: underline:  brightred
ul.blue:bold:   brightblue
li.red: reverse:red:yellow
li.blue:bold:   blue
strong.a:   bold:   black:  red
em.a:   reverse:black:  blue
strong.b:   bold:   white:  red
em.b:   reverse:white:  blue
strong.debug:   reverse:green
font.letter:normal: white:  blue
input.submit:   normal: cyan
tr.baone:   bold:   yellow
tr.batwo:   bold:   green
tr.bathree: bold:   red
#
# Special handling for link.
link:   normal: white
link.green: bold:   brightgreen
link.red:   bold:   black:  red
link.blue:  bold:   white:  blue
link.toc:   bold:   black:  white
# Special cases for link - the rel or title is appended after the class.
# 
link.red.next:  bold:   red
link.red.prev:  bold:   yellow: red
link.blue.prev: bold:   yellow: blue
link.blue.next: bold:  

Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread RVP

On Thu, 16 Sep 2021, Brian Buhrow wrote:


hello.  Okay.  I tried -nocolor with lynx + ncurses.  It works fine and 
doesn't
demonstrate the same problem.



My mistake, then. I thought you wanted pop-up selections to be highlighted
and not just indicated with the cursor. `-show_cursor' works on ncurses;
does not on curses (the cursor stays at the bottom).


This is a different problem -- the select choices in the pop-up
window are not rendered at all, it's not that they're rendered in a transparent 
color, they're
just not there.


Not seeing this with the 9.2 lynx and window packages on 9.2_STABLE or
9.99.88. With the custom .lss file, the pop-up selection is shown in
reverse video, but the cursor is not shown, and neither is the pop-up
border.

Without the .lss file, items are shown in the pop-up list, but there's
no indication (with curses) as to which entry one is on as the cursor
stays at the bottom.

You can get an ASCII pop-up list border if you set:

$ fgrep character_set=~/.lynxrc
character_set=UNICODE (UTF-8)

but, that may cause issues rendering webpages.

And, selected item highlight you can get with the custon .lss


Good to know about the color issue, though.



So the custon .lss file does highlight the current selection?

-RVP


daily CVS update output

2021-09-16 Thread NetBSD source update


Updating src tree:
P src/bin/csh/proc.c
P src/bin/ksh/c_ksh.c
P src/bin/ksh/c_test.c
P src/bin/ksh/shf.c
P src/bin/ksh/tree.c
P src/bin/ksh/vi.c
P src/common/lib/libc/gen/rb.c
P src/distrib/sets/lists/base/mi
P src/distrib/sets/lists/comp/md.amd64
P src/distrib/sets/lists/comp/md.i386
P src/distrib/sets/lists/comp/mi
P src/etc/mtree/NetBSD.dist.base
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-dynamic-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan-preinit-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/asan_cxx-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dd-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/dyndd-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/fuzzer_no_main-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/msan_cxx-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/safestack-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/tsan_cxx-m64/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m32/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-dynamic-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m32/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_minimal-m64/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m32/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-dynamic-m64/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m32/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone-m64/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m32/Makefile
P 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/ubsan_standalone_cxx-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-basic-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-fdr-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-m64/Makefile
P src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile
P src/lib/checkver
P src/lib/libc/gdtoa/test/README
P src/lib/libc/resolv/res_debug.c
P src/lib/libp2k/p2k.3
P src/lib/libresolv/dst_api.c
P src/lib/librumpclient/rumpclient.c
P src/lib/libukfs/ukfs.3
P src/libexec/identd/identd.c
P src/share/misc/acronyms
P src/sys/arch/acorn32/acorn32/rpc_machdep.c
P src/sys/arch/acorn32/eb7500atx/eb7500atx_machdep.c
P src/sys/arch/acorn32/podulebus/sbicreg.h
P src/sys/arch/alpha/pci/pci_machdep.c
P src/sys/arch/amiga/dev/sbicreg.h
P src/sys/arch/arm/imx/imx23_ssp.c
P src/sys/arch/arm/omap/omap_edma.c
P src/sys/arch/arm/ti/ti_edma.c
P src/sys/arch/atari/atari/le_bus.c
P src/sys/arch/evbarm/stand/Makefile
P src/sys/arch/i386/pci/pci_intr_fixup.c
P src/sys/arch/i386/stand/lib/netif/3c509.h
P src/sys/arch/mips/rmi/rmixl_obio_el_space.c
P src/sys/arch/mvme68k/dev/sbicreg.h
P src/sys/arch/shark/shark/i8042.c
P src/sys/arch/xen/include/i82489var.h
P src/sys/dev/smbios.c
P src/sys/dev/ic/aic79xx.c
P src/sys/dev/ic/aic7xxx.c
P src/sys/dev/microcode/aic7xxx/aic79xx.seq
P src/sys/dev/pci/amdpm_smbusreg.h
P src/sys/dev/pci/if_bge.c
P src/sys/dev/pci/if_ena.c
P src/sys/dev/pci/ixgbe/ixgbe.c
P src/sys/dev/pci/ixgbe/ixgbe.h
P src/sys/dev/pci/ixgbe/ixv.c
P src/sys/dev/usb/umass.c
P src/sys/fs/nilfs/nilfs_vfsops.c
P src/sys/fs/udf/udf_subr.c
P src/sys/fs/udf/udf_vfsops.c
P src/sys/kern/kern_module.c
P src/sys/kern/kern_physio.c
P src/sys/net/bpf.c
P src/sys/net/if.c
P src/sys/nfs/nfs_serv.c
P src/sys/rump/librump/rumpkern/vm.c
P src/sys/stand/efiboot/smbios.c
P src/sys/sys/flashio.h
P src/sys/sys/sysctl.h
P src/sys/ufs/chfs/ebh_media.h
P src/tests/dev/md/h_mdserv.c
P src/tests/fs/puffs/t_fuzz.c
P src/tests/fs/puffs/h_dtfs/dtfs_subr.c
P src/tests/fs/vfs/t_vnops.c
P src/tests/lib/librumphijack/h_client.c
P src/tests/sbin/fsck_ffs/t_enable_quotas.sh
P src/usr.bin/rump_dhcpclient/rump.dhcpclient.1
P src/usr.sbin/puffs/mount_psshfs/node.c
P src/usr.sbin/syslogd/tls.c

Updating xsrc tree:


Killing core files:




Updating file list:
-rw-rw-r--  1 srcmastr  netbsd  45411500 Sep 17 03:03 ls-lRA.gz


Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread Brett Lymn
On Thu, Sep 16, 2021 at 02:48:16PM -0700, Brian Buhrow wrote:
>   hello.  Okay.  I tried -nocolor with lynx + ncurses.  It works fine and 
> doesn't
> demonstrate the same problem.  This is a different problem -- the select 
> choices in the pop-up
> window are not rendered at all, it's not that they're rendered in a 
> transparent color, they're
> just not there.

It is not surprising that it works with ncurses given the same developer
works on both lynx and ncurses.

>  I think there is still an issue with the base libcurses library and, like
> Brett, I think it's different than the problem he already solved.
> 

Yes it does sound like a different problem probably another instance of
the window terminfo being radically different to xterm/vt100 which is
not a bad thing but just that it shows up some bugs that are hidden
which was the case with the previous bug I squashed.  That one had been
there since curses was imported into NetBSD, every other terminal in
popular use must use ^J for cud1 which had the side effect of moving the
cursor to the beginning of the next line but window has a true cursor
down that does not move the cursor to the beginning of the next line.
It took me ages to believe that was the issue.

I am working on something else at the moment but get to this next.

-- 
Brett Lymn
--
Sent from my NetBSD device.

"We are were wolves",
"You mean werewolves?",
"No we were wolves, now we are something else entirely",
"Oh"


Automated report: NetBSD-current/i386 build failure

2021-09-16 Thread NetBSD Test Fixture
This is an automatically generated notice of a NetBSD-current/i386
build failure.

The failure occurred on babylon5.netbsd.org, a NetBSD/amd64 host,
using sources from CVS date 2021.09.16.23.32.50.

An extract from the build.sh output follows:

cd /tmp/build/2021.09.16.23.32.50-i386/src/distrib/sets &&  
DESTDIR=/tmp/build/2021.09.16.23.32.50-i386/destdir  MACHINE=i386  
MACHINE_ARCH=i386  AWK=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbawk  
CKSUM=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbcksum  
DB=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbdb  
EGREP=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbgrep\ -E  HOST_SH=/bin/sh 
 MAKE=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbmake  
MKTEMP=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbmktemp  
MTREE=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbmtree  
PAX=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbpax  COMPRESS_PROGRAM=gzip  
GZIP=-n  XZ_OPT=-9  TAR_SUFF=tgz  
PKG_CREATE=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbpkg_create  
SED=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbsed  
TSORT=/tmp/build/2021.09.16.23.32.50-i386/tools/bin/nbtsort\ -q  /bin/sh 
/tmp/build/2021.09.16.23.32.50-i386/src/distrib/sets/checkflist  -L base  -M 
/tmp/build/2021.09.
 16.23.32.50-i386/destdir/METALOG.sanitised
===  1 extra files in DESTDIR  =
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
--
./usr/lib/dtrace
=  end of 1 extra files  ===
*** Failed target: checkflist
*** Failed commands:
${SETSCMD} ${.CURDIR}/checkflist  ${MAKEFLIST_FLAGS} 
${CHECKFLIST_FLAGS} ${METALOG.unpriv}
*** [checkflist] Error code 1
nbmake[2]: stopped in /tmp/build/2021.09.16.23.32.50-i386/src/distrib/sets
1 error
nbmake[2]: stopped in /tmp/build/2021.09.16.23.32.50-i386/src/distrib/sets
nbmake[1]: stopped in /tmp/build/2021.09.16.23.32.50-i386/src
nbmake: stopped in /tmp/build/2021.09.16.23.32.50-i386/src
ERROR: Failed to make release

The following commits were made between the last successful build and
the failed build:

2021.09.16.23.32.49 christos src/distrib/sets/lists/base/mi,v 1.1282
2021.09.16.23.32.49 christos src/distrib/sets/lists/comp/md.amd64,v 1.288
2021.09.16.23.32.49 christos src/distrib/sets/lists/comp/md.i386,v 1.204
2021.09.16.23.32.49 christos src/distrib/sets/lists/comp/mi,v 1.2392
2021.09.16.23.32.50 christos src/etc/mtree/NetBSD.dist.base,v 1.238
2021.09.16.23.32.50 christos 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/common.mk,v 1.5
2021.09.16.23.32.50 christos 
src/external/bsd/compiler_rt/lib/clang/lib/netbsd/xray-profiling-m64/Makefile,v 
1.2

Logs can be found at:


http://releng.NetBSD.org/b5reports/i386/commits-2021.09.html#2021.09.16.23.32.50


Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread Brian Buhrow
hello.  No.  the .lss file change doesn't work because there's no text 
rendered to
highlight.  The showcursor problem is a different one and I think that one has 
been solved with
Brett's current fix, but until the current non-rendering of pop-up selections 
is fixed, I   can't
say for sure what works and what doesn't, because once the screen is not 
rendered properly, I
become less able to tell what should be there and what should not.
-thanks
-Brian



Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread Brian Buhrow
hello.  Okay.  I tried -nocolor with lynx + ncurses.  It works fine and 
doesn't
demonstrate the same problem.  This is a different problem -- the select 
choices in the pop-up
window are not rendered at all, it's not that they're rendered in a transparent 
color, they're
just not there.  I think there is still an issue with the base libcurses 
library and, like
Brett, I think it's different than the problem he already solved.

Good to know about the color issue, though.
-thanks
-Brian



Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread RVP

On Thu, 16 Sep 2021, Brian Buhrow wrote:


Hello.  If that is the problem, why does lynx not demonstrate this 
problem when linked
against libncurses?



Try running lynx+ncurses with `-nocolor'.

-RVP


Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread Brian Buhrow
Hello.  If that is the problem, why does lynx not demonstrate this 
problem when linked
against libncurses?
-thanks
-Brian


On Sep 16,  8:57am, RVP wrote:
} Subject: Re: Help with libcurses and lynx under NetBSD-9 and -current?
} On Wed, 15 Sep 2021, Brian Buhrow wrote:
} 
} This, actually isn't a curses issue. In this situation, on colour
} terminals, lynx highlights the selected item in yellow; on mono
} terms, no highlight is applied at all. You can change this by using
} a custom .lss file. Just copy the default /usr/pkg/etc/lynx.lss as
} ~/.lynx.lss, then make this small change:
} 
} $ diff /usr/pkg/etc/lynx.lss ~/.lynx.lss
} 64c64
} < menu.active:  normal: yellow: black
} ---
} > menu.active:  reverse:yellow: black
} $
} 
} Run lynx as: lynx -lss=$HOME/.lynx.lss
} You can also: export LYNX_LSS=$HOME/.lynx.lss
} 
} Apart from minor display glitches, it works out OK.
} 
} -RVP
>-- End of excerpt from RVP




Re: Help with libcurses and lynx under NetBSD-9 and -current?

2021-09-16 Thread RVP

On Wed, 15 Sep 2021, Brian Buhrow wrote:


Hello Brett.  My apologies for taking so long to look at this issue.  
Your fixes improve
the situation, but don't appear to entirely solve it.  Specifically, in lynx, 
if trying to
select from a drop down menu, the options for the drop down menu do not appear 
on the screen.
Here's how to reproduce the issue I'm seeing and my environment, in case that 
helps clarify the
problem.

1.  Run lynx against any web site.
lynx -show_cursor

2.  While lynx is running, press o to open the options page.

3.  Arrow down until you reach the SSL prompting menu item.

4.  press return on that menu item.  This should produce a popup window in the 
middle of your
text and your arrow keys should let you select one of the choices.

5.  On a working system, I get the popup window and I can arrow around.
On the libcurses with your changes, nothing appears on the screen, though the 
arrow keys do
change the choices from inside Lynx, meaning when you hit return to select an 
option, you can
see you've changed your selection back on the main screen.



This, actually isn't a curses issue. In this situation, on colour
terminals, lynx highlights the selected item in yellow; on mono
terms, no highlight is applied at all. You can change this by using
a custom .lss file. Just copy the default /usr/pkg/etc/lynx.lss as
~/.lynx.lss, then make this small change:

$ diff /usr/pkg/etc/lynx.lss ~/.lynx.lss
64c64
< menu.active:  normal: yellow: black
---

menu.active:  reverse:yellow: black

$

Run lynx as: lynx -lss=$HOME/.lynx.lss
You can also: export LYNX_LSS=$HOME/.lynx.lss

Apart from minor display glitches, it works out OK.

-RVP