Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > muc.lists.netbsd.tech.userlevel > #11798

Re: Old curses puzzle

From Brett Lymn <blymn@internode.on.net>
Newsgroups muc.lists.netbsd.tech.userlevel
Subject Re: Old curses puzzle
Date 2026-07-21 17:15 +0930
Organization Newsgate at muc.de e.V.
Message-ID <al8jj8vrpRvqooef@internode.on.net> (permalink)
References <> <202607171612.MAA11503@Stone.Rodents-Montreal.ORG>

Show all headers | View raw


On Fri, Jul 17, 2026 at 12:12:18PM -0400, Mouse wrote:
> 
> It obviously is not the *right* fix, but it's good enough for me for
> the moment.
> 

I am reasonably sure that the screen data structures get initialised
later, some of it may occur on the first call to refresh(), other bits
just after the screen is created.  If you can absolutely show that we
are referencing uninitialised data then sbutmit a PR and I will be happy
to have a look.

As a thought, I wonder if you are making things complicated for
yourself, you could split your program into two cooperating processes,
one that handles the async interactions with the hardware and the other
handles the UI.  That way you don't have to force the curses library
into a no-wait situation when it is not expecting it - curses does
handle not waiting in some situations but it is under the control of the
library.

-- 
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"

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de

Back to muc.lists.netbsd.tech.userlevel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Old curses puzzle Mouse <mouse@Rodents-Montreal.ORG> - 2026-07-17 09:35 -0400
  Re: Old curses puzzle Mouse <mouse@Rodents-Montreal.ORG> - 2026-07-17 12:12 -0400
    Re: Old curses puzzle Brett Lymn <blymn@internode.on.net> - 2026-07-21 17:15 +0930
      Re: Old curses puzzle Mouse <mouse@Rodents-Montreal.ORG> - 2026-07-21 09:01 -0400
        Re: Old curses puzzle Brett Lymn <blymn@internode.on.net> - 2026-07-24 10:43 +0930

csiph-web