Re: Surprising tput behavior: `tput el` and `tput cuu1 el` generate identical output

Thomas Dickey <[email protected]> Wed, 3 Jun 2026 03:52:47 -0400
Newsgroups gmane.comp.lib.ncurses.bugs
Message-ID <[email protected]>
--JDR2i+K6NtgmNO/X
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jun 02, 2026 at 10:54:09PM -0700, Parke wrote:
> On Tue, Jun 2, 2026 at 5:24=E2=80=AFPM Thomas Dickey
> <[email protected]> wrote:
> > > Is this expected and intentional?  (To me it seems unexpected and sur=
prising.)
> >
> > no - referring to
> >
> > 20210925
> >         + modify tput to allow multiple commands per line.
>=20
> Thank you for the reply.
>=20
> My apologies for failing to include version numbers.
>=20
> I originally tested on Ubuntu 24.04.  I have now also tested on Ubuntu 25=
=2E10.
>=20
> On Ubuntu 24.04, the unexpected behavior is present.
> The package is:
> ncurses-bin  6.4+20240113-1ubuntu2
>=20
> On Ubuntu 25.10, tput behaves correctly.
> The package is:
> ncurses-bin  6.5+20250216-2build1
>=20
> So it appears the problem was fixed at some point prior to 6.5+20250216.

bisecting gives this:

20250104
	+ modify tput to warn about capabilities which expect parameters where
	  none are given; also repair the feature where multiple capabilities
	  can be handled on a single line.
=20
(last night I was looking at the code in tput.c which implements multiple
capabilities without noticing the tie-in to missing capabilities)

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

--JDR2i+K6NtgmNO/X
Content-Type: application/pgp-signature; name="signature.asc"

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

iQGzBAABCgAdFiEEGYgtkt2kxADCLA1WzCr0RyFnvgMFAmof3UsACgkQzCr0RyFn
vgPnrgv/YXsMNG7f7SxjkUsdl9gcCvGjBoigKKaptR+DAvNCSFJtJy4bSQLbhpZH
T7bwHPqFrGrv+zqkN82nrl9fUFJx7y5wzv+kyBeoTmx26MqA4x5UXsTFTi+AwCUr
p8miOXuObsIQ9xAQAfsIHEoYm4/keg0uKo46oMseojAt7qCt9pJO6crP5k6UjybL
HOhhrjAbPJfNpCP0wMNuQT+ptbLPF1o+oDPBo1+arTDqZchVe1Wrz6+pfxY8a6UV
3QXA98Vbb1qM2INfYNDLMP2ht353X6ZhrTxEsS8MMiY2qt45c83eGSJPqsncIcWQ
NbZbN9NrJt2gnneY9hnGlcYKJLboYL+Gl+1EhYKOmP8NWbrhavrzR74qV1EzxxU/
coW/iJrN78SnshrsX3VkiPp3mZjziPlW8Ut1Oiwrb9031AFD9NPgHe5e5oQaScCy
23qPoPyNkn7Yu4s2un9kSldixvUbcP6MGlFYndfDhLBBfTH0Rv6W7xoQpJFUS1nl
uXMgnIfS
=kqaf
-----END PGP SIGNATURE-----

--JDR2i+K6NtgmNO/X--