Re: [Lynx-dev] lynx blinking after terminal window resizing

2023-07-16 Thread Thomas Dickey
On Sun, Jul 16, 2023 at 03:48:54PM -0700, Name Same wrote:
> Hi, did this make it into the fixes? I get the same behavior inside tmux
> which is linked to ncurses. I don't see the flicker in terminal if I use it
> outside tmux (like directly in WezTerm).

I've been too busy with other programs; this is still on my to-do list.
(I recall a suggested fix which didn't appear to be correct).
 
> Also as a side note, I don't see lynx reflow the paragraphs when winch
> arrives, even if NONRESTARTING_SIGWINCH:TRUE is set. links and elinks both
> reflow. Is there a good reason to not support winches? Thanks, Robin

As lynx is set up, doing that would act like a refresh (re-reading the
source), which would be poor performance.

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] lynx blinking after terminal window resizing

2023-07-16 Thread Name Same
Hi, did this make it into the fixes? I get the same behavior inside tmux
which is linked to ncurses. I don't see the flicker in terminal if I use it
outside tmux (like directly in WezTerm).

Also as a side note, I don't see lynx reflow the paragraphs when winch
arrives, even if NONRESTARTING_SIGWINCH:TRUE is set. links and elinks both
reflow. Is there a good reason to not support winches? Thanks, Robin


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-06 Thread Robin Stern
On Tue, Aug 02, 2022 at 02:51:35PM +0300, Tim wrote:
> > Perhaps this would be reproducible if the version of lynx were identified,
> > as well as which platform.  I don't see it using
> > - xterm 372,
> > - ncurses 6.1 and 6.3,
> > - lynx 2.8.9rel.1 and 2.9.0dev.10
> >
> > -- 
> > Thomas E. Dickey 
> > https://invisible-island.net
> > ftp://ftp.invisible-island.net
> 
> Sorry. Sure.
> 
>   - foot 1.12.1, alacritty 0.10.1,
>   - ncurses 6.3_p20220724-r0,
>   - lynx 2.8.9_p1-r7,
>   
>   x86_64
>   Alpine linux (edge)
>   Wayland
>
Such blinking also happens without WINCH when I press and hold keys j/k which 
are bound to UP_TWO and DOWN_TWO. Does not happen with neovim or other terminal 
based applications I use, so I would assume it has not much to do with my 
setup. Here's the output of lynx --version:
Lynx Version 2.9.0dev.10 (11 Aug 2021)
libwww-FM 2.14, SSL-MM 1.4.1, OpenSSL 1.1.1q, ncurses 6.3.20211021
Built on darwin21.6.0 (Aug  2 2022 09:37:15).

Thanks,

~Robin



Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-03 Thread Thomas Dickey
On Tue, Aug 02, 2022 at 10:37:46PM +, Thorsten Glaser wrote:
> Thomas Dickey dixit:
> 
> >> I see it on Debian stable/bullseye, for example.
> >
> >I still don't see it with this combination.
> 
> Huh.
> 
> >The blinking that you're describing would be full-screen repainting.
> 
> Yes. I can verify that it does that in a typescript (attached).

I see - it requires a slow connection to reproduce this.

Just turning the code off isn't a fix; the variable that's
used to remember that there's a recent size-change has to be reset
(and retested :-)

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-03 Thread Robin Stern
The same blinking (screen flicker) being talked about happens on my machine
too, after screen resize.

macOS 12.5, xterm-256color for lynx inside tmux, iTerm2, aarch64 (apple
silicon), lynx version: current (latest).

On Wed, Aug 3, 2022 at 5:42 AM Ian Collier  wrote:

> On Wed, Aug 03, 2022 at 10:55:53AM +0300, Tim wrote:
> > Here is steps to reproduce.
>
> > 1. Open foot terminal in float mode.
> > 2. Run `lynx github.com`.
> > 3. Change foot into fullscreen mode.
> > 3. Try to jump between the links.
> > 4. See blinks.
>
> I'm reproducing this on Fedora 36 with distro-supplied packages
> (xterm-371-1.fc36.x86_64 lynx-2.9.0-dev.10.2.fc36.x86_64
> ncurses-6.2-9.20210508.fc36.x86_64).
>
> However, it's usually too quick to cause any actual visual disturbance.
> By scripting it and then replaying the script at a lower speed I can see
> that each movement redraws the whole screen.
>
> imc
>
>


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-03 Thread Ian Collier
On Wed, Aug 03, 2022 at 10:55:53AM +0300, Tim wrote:
> Here is steps to reproduce.

> 1. Open foot terminal in float mode.
> 2. Run `lynx github.com`.
> 3. Change foot into fullscreen mode.
> 3. Try to jump between the links.
> 4. See blinks.

I'm reproducing this on Fedora 36 with distro-supplied packages
(xterm-371-1.fc36.x86_64 lynx-2.9.0-dev.10.2.fc36.x86_64
ncurses-6.2-9.20210508.fc36.x86_64).

However, it's usually too quick to cause any actual visual disturbance.
By scripting it and then replaying the script at a lower speed I can see
that each movement redraws the whole screen.

imc



Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-03 Thread Tim
Here is steps to reproduce.

Alpine edge, x86_64
Sway wm

1. Open foot terminal in float mode.
2. Run `lynx github.com`.
3. Change foot into fullscreen mode.
3. Try to jump between the links.
4. See blinks.

Here is my lynx config:
http://ix.io/46wb

Here is video demo:
https://0x0.st/oe2h.mp4

How can I help more?


On Tue Aug 2, 2022 at 11:49 PM EEST, Thomas Dickey wrote:
>
> I still don't see it with this combination.  The blinking that you're
> describing would be full-screen repainting.  When I resize the screen and
> press ^R, subsequent cursor movement is only updating the expected
> link-highlighting characters.
>
> Perhaps it's something in your lynx configuration which is relevant.
> In my check, I used a test account which doesn't customize anything.
>
> --
> Thomas E. Dickey 
> https://invisible-island.net
> ftp://ftp.invisible-island.net




Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-02 Thread Thorsten Glaser
Thomas Dickey dixit:

>> I see it on Debian stable/bullseye, for example.
>
>I still don't see it with this combination.

Huh.

>The blinking that you're describing would be full-screen repainting.

Yes. I can verify that it does that in a typescript (attached).

I started lynx in an 80x24, moved the cursor down and up twice,
resized to 80x25, pressed ^R, then moved the cursor down… thrice,
I think. The pagetitle shows up several times, matching repaint.

$TERM is xterm, it happens with GNU screen as well (TERM=screen,
not the Debian “ncurses-term” madness of screen.xterm or so, as
that breaks sshing into BSD boxen).

>Perhaps it's something in your lynx configuration which is relevant.
>In my check, I used a test account which doesn't customize anything.

Hm. I’m attaching my /etc/lynx/local.cfg and /etc/lynx/lynx.lss and
~/.lynxrc files, maybe then? And ~/.Xresources as well…

bye,
//mirabilos
-- 
15:39⎜«mika:#grml» mira|AO: "mit XFree86® wär’ das nicht passiert" - muhaha
15:48⎜ also warum machen die xorg Jungs eigentlich alles
kaputt? :)15:49⎜ thkoehler: weil sie als Kinder nie den
gebauten Turm selber umschmeissen durften?  -- ~/.Xmodmap wonders…

typescript.gz
Description: Binary data
STARTFILE:file://localhost/~/
CHARACTER_SET:utf-8
LOCALE_CHARSET:FALSE
HTML5_CHARSETS:TRUE
ASSUME_CHARSET:utf-8
PREPEND_CHARSET_TO_SOURCE:TRUE
PREFERRED_LANGUAGE:
PREFERRED_CHARSET:utf-8
PARTIAL_THRES:3
SHOW_KB_RATE:BYTES,ETA
SHOW_CURSOR:FALSE
DEFAULT_CACHE_SIZE:512
DEFAULT_VIRTUAL_MEMORY_SIZE:25165824
SOURCE_CACHE:MEMORY
SOURCE_CACHE_FOR_ABORTED:KEEP
COLLAPSE_BR_TAGS:FALSE
COOKIE_REJECT_DOMAINS:google.com,google.de,google.at,google.ch,googleusercontent.com,dict.leo.org
PERSISTENT_COOKIES:TRUE
COOKIE_FILE:~/.etc/cookies.txt
COOKIE_SAVE_FILE:~/.etc/cookies.txt
DEFAULT_BOOKMARK_FILE:./.etc/bookmark.htm
POSITIONABLE_EDITOR:jupp
DOWNLOADER:View in less:less -f '%s':FALSE
DOWNLOADER:View in xloadimage:xloadimage -quiet '%s':FALSE:XWINDOWS
DOWNLOADER:View in mupdf:mupdf '%s':FALSE:XWINDOWS
DOWNLOADER:Spawn editor:"${VISUAL-${EDITOR-ed}}" '%s':FALSE
QUIT_DEFAULT_YES:FALSE
XLOADIMAGE_COMMAND:xloadimage -quiet %s
NESTED_TABLES: true
EXTERNAL:ftp:wget %s &:FALSE
EXTERNAL:http:wget %s &:FALSE
EXTERNAL:https:wget %s &:FALSE
EXTERNAL:http:mplayer %s:FALSE
EXTERNAL:https:mplayer %s:FALSE
PRETTYSRC_VIEW_NO_ANCHOR_NUMBERING:TRUE
XHTML_PARSING:TRUE
JUSTIFY:TRUE
TEXTFIELDS_NEED_ACTIVATION:TRUE
LEFTARROW_IN_TEXTFIELD_PROMPT:TRUE
ENABLE_LYNXRC:ASSUME_CHARSET:ON
ENABLE_LYNXRC:BAD_HTML:ON
ENABLE_LYNXRC:FORCE_COOKIE_PROMPT:ON
ENABLE_LYNXRC:FORCE_SSL_PROMPT:ON
ENABLE_LYNXRC:FTP_PASSIVE:ON
ENABLE_LYNXRC:HTML5_CHARSETS:ON
ENABLE_LYNXRC:MAKE_LINKS_FOR_ALL_IMAGES:ON
ENABLE_LYNXRC:MAKE_PSEUDO_ALTS_FOR_INLINES:ON
ENABLE_LYNXRC:NO_PAUSE:ON
ENABLE_LYNXRC:PREFERRED_ENCODING:ON
ENABLE_LYNXRC:PREFERRED_MEDIA_TYPES:ON
ENABLE_LYNXRC:RAW_MODE:ON
ENABLE_LYNXRC:SCROLLBAR:ON
ENABLE_LYNXRC:SET_COOKIES:ON
ENABLE_LYNXRC:SHOW_KB_RATE:ON
ENABLE_LYNXRC:TAGSOUP:ON
ENABLE_LYNXRC:UNDERLINE_LINKS:ON
TRACK_INTERNAL_LINKS:TRUE
GLOBAL_MAILCAP:
# $MirOS: src/gnu/usr.bin/lynx/samples/lynx.lss,v 1.7 2013/01/11 00:12:05 tg 
Exp $
#
# 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: lightgray: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: cy

Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-02 Thread Thomas Dickey
On Mon, Aug 01, 2022 at 10:19:17PM +, Thorsten Glaser wrote:
> Thomas Dickey dixit:
> 
> >On Sun, Jun 12, 2022 at 03:16:40AM +0300, mark zaharov wrote:
> >> here is the solution which my friend provides. He said it works well with 
> >> slang and this bug exists for ncurces only.
> 
> Huh, I didn’t get that mail.
> 
> >Perhaps this would be reproducible if the version of lynx were identified,
> >as well as which platform.  I don't see it using
> > - xterm 372,
> > - ncurses 6.1 and 6.3,
> > - lynx 2.8.9rel.1 and 2.9.0dev.10
> 
> I see it on Debian stable/bullseye, for example.

I still don't see it with this combination.  The blinking that you're
describing would be full-screen repainting.  When I resize the screen and
press ^R, subsequent cursor movement is only updating the expected
link-highlighting characters.

Perhaps it's something in your lynx configuration which is relevant.
In my check, I used a test account which doesn't customize anything.

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-02 Thread Tim
> Perhaps this would be reproducible if the version of lynx were identified,
> as well as which platform.  I don't see it using
>   - xterm 372,
>   - ncurses 6.1 and 6.3,
>   - lynx 2.8.9rel.1 and 2.9.0dev.10
>
> -- 
> Thomas E. Dickey 
> https://invisible-island.net
> ftp://ftp.invisible-island.net

Sorry. Sure.

- foot 1.12.1, alacritty 0.10.1,
- ncurses 6.3_p20220724-r0,
- lynx 2.8.9_p1-r7,

x86_64
Alpine linux (edge)
Wayland



Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-01 Thread Thorsten Glaser
Thomas Dickey dixit:

>On Sun, Jun 12, 2022 at 03:16:40AM +0300, mark zaharov wrote:
>> here is the solution which my friend provides. He said it works well with 
>> slang and this bug exists for ncurces only.

Huh, I didn’t get that mail.

>Perhaps this would be reproducible if the version of lynx were identified,
>as well as which platform.  I don't see it using
>   - xterm 372,
>   - ncurses 6.1 and 6.3,
>   - lynx 2.8.9rel.1 and 2.9.0dev.10

I see it on Debian stable/bullseye, for example.

ii  libncurses6:amd64 6.2+20201114-2   amd64shared libraries for 
terminal handling
ii  lynx  2.9.0dev.6-3~deb11u1 amd64classic non-graphical 
(text-mode) web browser
ii  xterm 366-1+deb11u1amd64X terminal emulator

bye,
//mirabilos
-- 
15:39⎜«mika:#grml» mira|AO: "mit XFree86® wär’ das nicht passiert" - muhaha
15:48⎜ also warum machen die xorg Jungs eigentlich alles
kaputt? :)15:49⎜ thkoehler: weil sie als Kinder nie den
gebauten Turm selber umschmeissen durften?  -- ~/.Xmodmap wonders…



Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-08-01 Thread Thomas Dickey
On Sun, Jun 12, 2022 at 03:16:40AM +0300, mark zaharov wrote:
> here is the solution which my friend provides. He said it works well with 
> slang and this bug exists for ncurces only.
> --- lynx-2.9.0dev.10.orig/src/LYStrings.c   2021-10-24 12:05:19.0 
> +0300
> +++ lynx-2.9.0dev.10/src/LYStrings.c2022-06-11 23:58:18.946192456 +0300
> @@ -2250,7 +2250,7 @@
> recent_sizechange));
>  #endif /* HAVE_SIZECHANGE || USE_SLANG */
> if (!recent_sizechange) {
> -#if defined(NCURSES)
> +#if defined(NCURSES) && 0
> /*
>  * Work-around for scenario (Linux libc5) where we got a
>  * recent sizechange before reading KEY_RESIZE.  If we do

Perhaps this would be reproducible if the version of lynx were identified,
as well as which platform.  I don't see it using
- xterm 372,
- ncurses 6.1 and 6.3,
- lynx 2.8.9rel.1 and 2.9.0dev.10

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-07-31 Thread mark zaharov
Unfortunately the issue still exists... Any way to fix it?

Пт, 10 июня 2022 г. в 13:35, Tim :

> Hello. I've faced up with isssue. When resize my terminal window with
> lynx or change the font then lynx start blinking on each navigation. How
> to fix it?
>


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-06-12 Thread mark zaharov
Thanks Thorsten. It's well described steps to reproduce the bug.

Пн, 13 июня 2022 г. в 00:32, Thorsten Glaser :

> Thomas Dickey dixit:
> >On Fri, Jun 10, 2022 at 03:43:43PM +, Thorsten Glaser wrote:
> >> Tim dixit:
> >>
> >> >Hello. I've faced up with isssue. When resize my terminal window with
> >> >lynx or change the font then lynx start blinking on each navigation.
> How
> >> >to fix it?
> >>
> >> Aaaah, so *that’s* why it sometimes blinks.
> >
> >I don't see how to reproduce this
>
> With Tim’s indication of it happening at resizing, I could.
>
> I tried to make a screencast, but you cannot see it there.
> I was able to somewhat spot it on a video I made with a
> smartphone camera, but any attempt to bring that into a size
> that can be mailed hide that again.
>
> Basically:
>
> - start xterm
> - start lynx inside xterm navigating to some page with links
>   (your bookmark file or ~ might be a good one)
> - press cur↑ and cur↓ a little, see no flicker
> - resize the window
> - press ^R so lynx redraws matching the new size
> - press cur↑ and cur↓ and see it flicker
>
> HTH & HAND,
> //mirabilos
> --
> 22:59⎜ glaub ich termkit is kompliziert | glabe nicht das man
> damit schneller arbeitet | reizüberflutung │ wie windows │ alles evil
> zuviel bilder │ wie ein spiel | 23:00⎜ die meisten raffen auch
> nicht mehr von windows | 23:01⎜ bilderbücher sind ja auch nich
> wirklich verbreitet als erwachsenen literatur   ‣ who needs GUIs thus?
>
>


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-06-12 Thread Thorsten Glaser
Thomas Dickey dixit:
>On Fri, Jun 10, 2022 at 03:43:43PM +, Thorsten Glaser wrote:
>> Tim dixit:
>> 
>> >Hello. I've faced up with isssue. When resize my terminal window with
>> >lynx or change the font then lynx start blinking on each navigation. How
>> >to fix it?
>> 
>> Aaaah, so *that’s* why it sometimes blinks.
>
>I don't see how to reproduce this 

With Tim’s indication of it happening at resizing, I could.

I tried to make a screencast, but you cannot see it there.
I was able to somewhat spot it on a video I made with a
smartphone camera, but any attempt to bring that into a size
that can be mailed hide that again.

Basically:

- start xterm
- start lynx inside xterm navigating to some page with links
  (your bookmark file or ~ might be a good one)
- press cur↑ and cur↓ a little, see no flicker
- resize the window
- press ^R so lynx redraws matching the new size
- press cur↑ and cur↓ and see it flicker

HTH & HAND,
//mirabilos
-- 
22:59⎜ glaub ich termkit is kompliziert | glabe nicht das man
damit schneller arbeitet | reizüberflutung │ wie windows │ alles evil
zuviel bilder │ wie ein spiel | 23:00⎜ die meisten raffen auch
nicht mehr von windows | 23:01⎜ bilderbücher sind ja auch nich
wirklich verbreitet als erwachsenen literatur   ‣ who needs GUIs thus?



Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-06-12 Thread Thomas Dickey
On Fri, Jun 10, 2022 at 03:43:43PM +, Thorsten Glaser wrote:
> Tim dixit:
> 
> >Hello. I've faced up with isssue. When resize my terminal window with
> >lynx or change the font then lynx start blinking on each navigation. How
> >to fix it?
> 
> Aaaah, so *that’s* why it sometimes blinks.

I don't see how to reproduce this 

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


signature.asc
Description: PGP signature


Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-06-11 Thread mark zaharov
here is the solution which my friend provides. He said it works well with 
slang and this bug exists for ncurces only.
--- lynx-2.9.0dev.10.orig/src/LYStrings.c   2021-10-24 12:05:19.0 
+0300
+++ lynx-2.9.0dev.10/src/LYStrings.c2022-06-11 23:58:18.946192456 +0300
@@ -2250,7 +2250,7 @@
recent_sizechange));
 #endif /* HAVE_SIZECHANGE || USE_SLANG */
if (!recent_sizechange) {
-#if defined(NCURSES)
+#if defined(NCURSES) && 0
/*
 * Work-around for scenario (Linux libc5) where we got a
 * recent sizechange before reading KEY_RESIZE.  If we do



Отправлено с iPhone

Re: [Lynx-dev] lynx blinking after terminal window resizing

2022-06-10 Thread Thorsten Glaser
Tim dixit:

>Hello. I've faced up with isssue. When resize my terminal window with
>lynx or change the font then lynx start blinking on each navigation. How
>to fix it?

Aaaah, so *that’s* why it sometimes blinks.

Sorry for not having any solution either, but I’m glad I didn’t
just imagine that and are not alone.

bye,
//mirabilos
-- 
  "Using Lynx is like wearing a really good pair of shades: cuts out
   the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
 -- Henry Nelson, March 1999



[Lynx-dev] lynx blinking after terminal window resizing

2022-06-10 Thread Tim
Hello. I've faced up with isssue. When resize my terminal window with
lynx or change the font then lynx start blinking on each navigation. How
to fix it?