NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bin/58090: Ctrl-Z, fg makes blinking cursor in vi
The following reply was made to PR bin/58090; it has been noted by GNATS.
From: RVP <rvp%SDF.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: Valery Ushakov <uwe%stderr.spb.ru@localhost>,
Tom Dickey <dickey%invisible-island.net@localhost>
Subject: Re: bin/58090: Ctrl-Z, fg makes blinking cursor in vi
Date: Wed, 22 May 2024 22:57:56 +0000 (UTC)
On Sat, 30 Mar 2024, Valery Ushakov wrote:
> The bug is in curses and it's that we init
>
> new_screen->old_mode = 2;
>
> Where "old_mode" is a bit cryptic, but it means the old cursor mode:
>
> void
> __restore_cursor_vis(void)
> {
> curs_set(_cursesi_screen->old_mode);
> }
>
>
Yeah. There's no "correct" default setting for this because you
can't (as far as I know) query the terminal to find out what the
terminal's current cursor visibility is. So, curses has to assume
some default.
I talked to Tom Dickey about this some time back and he says the
Solaris curses also sets this to 1. Maybe BSD curses should do too?
-RVP
Home |
Main Index |
Thread Index |
Old Index