Re: move_panel not working with pads

Thomas Dickey <[email protected]> Mon, 15 Jun 2026 19:11:11 -0400
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
--PT1ZZlHAjH4oSrTx
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Jun 15, 2026 at 06:12:27PM -0400, Bill Gray wrote:
> On 6/15/26 16:56, Thomas Dickey wrote:
> > On Mon, Jun 15, 2026 at 02:57:45PM -0400, Bill Gray wrote:
> > >     Hmmm... please post the test code you're using for this?  Have yo=
u tried
> > > it with PDCursesMod?  (Its panel library is a near-total rewrite, but=
 its
> > > move_panel() does use mvwin() internally.)
> >=20
> > yes... a test-program is needed to see how it compares with the
> > various implementations :-)
>=20
>    It occurs to me to wonder : is the panel library warranteed to work if
> you feed it a pad (or subpad or sub-window) instead of a plain old window?
> I've never tried it.
>=20
>    Is there a use case for calling new_panel( ) with a pad?

maybe - but pads differ from windows by being more readily movable

>=20
> -- Bill
>=20
> > > -- Bill
> > >=20
> > > On 6/15/26 14:20, Giorgos Xou wrote:
> > > > move_panel internally uses mvwin, which doesn't work with pads (pdc=
urses
> > > > seems to be affected by this as well). Maybe pnoutrefresh=A0could b=
e used
> > > > internally for that specific case or some kind of an alternative new
> > > > mvpad function?
> > > >=20
> > > > (It just happened that I was again looking deep=A0into how panels w=
ork
> > > > internally and just happened to stumble upon=A0this issue.)
> > > >=20
> > > > *Cross-refs: *
> > > > 3. ncurses 6.3 - patch 20211106 <https://github.com/mirror/ncurses/=
commit/f399f54c6c4ea2143afcbf704ce9af0be52b63fc>
> > > > 2. hide_panel/show_panel not working with pads.
> > > > <https://lists.gnu.org/archive/html/bug-ncurses/2021-10/msg00037.ht=
ml>
> > > > 1. https://github.com/wmcbrine/PDCurses/issues/124
> > > > <https://github.com/wmcbrine/PDCurses/issues/124>
> > >=20
> > >=20
> >=20
>=20

--=20
Thomas E. Dickey <[email protected]>
https://invisible-island.net

--PT1ZZlHAjH4oSrTx
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmowhosACgkQzCr0RyFn
vgMAwQwA5XEeTRNfRjVtUjyAUaNMlB4pe8b8PUdnrfMvuyLR4Vg+Ezd2Hj+6d+76
luYGX05jYFv1ebJzr2m8dURaWPAoI8HU2XwC2UVup8IjoP6h+IbzEVjz1h6MJX2G
biWlufMgEejao/W8rkgvaWX/NaBCbjfZi81SzZzma6tzG4cPIq2+R76WZxEJmAjo
r77G6BZKGWO60RSa55XO9EMcyyx2HHa4AiEddpPQVEgRo5U2ue3V+BOBZsezqnr2
CsRKZhd+KsQF7SRi8L6ru2vKCpEUJLfXzgPavGvBPZsieV3VPgS8D3CHcU5d+N0a
kyML0hFEu4z7qQraI1Y0H4mmhkDQqz9AubeQk+C4yIrkeYOGBGKV0738z6w3wpGO
jCsuH77CbGG92eFbty4YIcdOaVd/Fzh65lTbaRBiuXCOawBxXsObW/cIm24kH1bL
AAMecJIYt2oognrsSDk/spJGSR53G0pAYjI9avMFMdn6qfvH3aOOhnxxP1t1DgaN
nbOYybNP
=r81b
-----END PGP SIGNATURE-----

--PT1ZZlHAjH4oSrTx--