Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 May 2020 15:50:37 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Cy Schubert <Cy.Schubert@cschubert.com>
Cc:        freebsd-current@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: sysutils/screen-ncurses port
Message-ID:  <20200504135037.mcrqeomkkqmoew3w@ivaldir.net>
In-Reply-To: <202005041335.044DZ3m1054565@slippy.cwsent.com>
References:  <202004291841.03TIfkZh081308@slippy.cwsent.com> <20200430075337.3wdzglshhorcd2qn@ivaldir.net> <202004301256.03UCusls050859@slippy.cwsent.com> <20200430130449.cwsf3x42o6w67gor@ivaldir.net> <202005032010.043KAwm9005791@slippy.cwsent.com> <20200504072624.wlyd73pehq25tcp2@ivaldir.net> <202005041335.044DZ3m1054565@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--2ep4og2cnix6if2a
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 04, 2020 at 06:35:03AM -0700, Cy Schubert wrote:
> In message <20200504072624.wlyd73pehq25tcp2@ivaldir.net>, Baptiste=20
> Daroussin wr
> ites:
> >=20
> >
> > --ma2vde2ykv3k7k6b
> > Content-Type: text/plain; charset=3Dus-ascii
> > Content-Disposition: inline
> > Content-Transfer-Encoding: quoted-printable
> >
> > On Sun, May 03, 2020 at 01:10:58PM -0700, Cy Schubert wrote:
> > > In message <20200430130449.cwsf3x42o6w67gor@ivaldir.net>, Baptiste=3D=
20
> > > Daroussin wr
> > > ites:
> > > >=3D20
> > > >
> > > > --mvhxgm4zl62unzlf
> > > > Content-Type: text/plain; charset=3D3Dus-ascii
> > > > Content-Disposition: inline
> > > > Content-Transfer-Encoding: quoted-printable
> > > >
> > > > On Thu, Apr 30, 2020 at 05:56:54AM -0700, Cy Schubert wrote:
> > > > > In message <20200430075337.3wdzglshhorcd2qn@ivaldir.net>, Baptist=
e=3D3D=3D
> > 20
> > > > > Daroussin wr
> > > > > ites:
> > > > > >=3D3D20
> > > > > >
> > > > > > --vwrr5drfobpkyvop
> > > > > > Content-Type: text/plain; charset=3D3D3Dus-ascii
> > > > > > Content-Disposition: inline
> > > > > > Content-Transfer-Encoding: quoted-printable
> > > > > >
> > > > > > On Wed, Apr 29, 2020 at 11:41:46AM -0700, Cy Schubert wrote:
> > > > > > > Would people be open to the idea of a sysutils/screen-ncurses=
 por=3D
> > t th=3D3D
> > > > at=3D3D3D
> > > > > > =3D3D3D20
> > > > > > > depends on devel/ncurses instead of ncureses in base? The rea=
son =3D
> > for =3D3D
> > > > this=3D3D3D
> > > > > > =3D3D3D20
> > > > > > > is there are screen.* terminfo entries in devel/ncurses that =
don'=3D
> > t ex=3D3D
> > > > ist =3D3D3D
> > > > > > in=3D3D3D20
> > > > > > > termcap(5). People who want that extra functionality would be=
 adv=3D
> > ised=3D3D
> > > >  to=3D3D3D
> > > > > > =3D3D3D20
> > > > > > > install the alternative pkg or build the sysutils/screen port=
 wit=3D
> > h th=3D3D
> > > > e=3D3D3D20
> > > > > > > appropriate option.
> > > > > > >=3D3D3D20
> > > > > > > Or, simply change the default from whatever ncurses is availa=
ble =3D
> > to a=3D3D
> > > > lway=3D3D3D
> > > > > > s=3D3D3D20
> > > > > > > install devel/ncurses. People could always select one of the =
othe=3D
> > r op=3D3D
> > > > tion=3D3D3D
> > > > > > s.=3D3D3D20
> > > > > > > Personally, I'm not enamoured with this approach.
> > > > > >
> > > > > > I think it is a terrible idea, and we should fix the initial pr=
oble=3D
> > m in=3D3D
> > > > stea=3D3D3D
> > > > > > d of
> > > > > > workarounding it.
> > > > > >
> > > > > > 1/ why those are not in our termcap(5) ? they should be added i=
f th=3D
> > ey a=3D3D
> > > > re
> > > > > > missing. and MFC asap (prior 11.4 and 12.2 would be nice)
> > > > >=3D3D20
> > > > > I came to this conclusion last night after sending this email thr=
ead =3D
> > oud=3D3D
> > > > =3D3D20
> > > > > and will test it some time today.
> > > > >=3D3D20
> > > > > >
> > > > > > 2/ we should allow our base ncurses to get informations from ne=
wer =3D
> > term=3D3D
> > > > cap(=3D3D3D
> > > > > > 5) if
> > > > > > needed.
> > > > > > So far the default TERMCAP is
> > > > > > ${HOME}/.termcap{,.db}:/etc/termcap{,.db}:/usr/share/misc/termc=
ap{,=3D
> > =3D2Edb}
> > > > > >
> > > > > > First the user can be advise to point configure the $home/.term=
cap =3D
> > this=3D3D
> > > >  is =3D3D3D
> > > > > > for
> > > > > > quick now.
> > > >
> > > > that is in your scope via a pkg-message :D
> > > >
> > > > > >
> > > > > > Second for later futur proof mechanism we could modify our term=
cap =3D
> > read=3D3D
> > > > er (=3D3D3D
> > > > > > we
> > > > > > use our own, not the one in provided by ncurses). to be able to=
 fet=3D
> > ch t=3D3D
> > > > ermc=3D3D3D
> > > > > > ap
> > > > > > capabilities from /usr/local/share/misc/termcap/*.conf for exam=
ple
> > > > > >
> > > > > > This way ports with random termcap info to add would be able to=
 do =3D
> > it w=3D3D
> > > > itho=3D3D3D
> > > > > > ut
> > > > > > the requirement to wait for a commit in base and a MFC.
> > > > >=3D3D20
> > > > > This is probably outside of my scope at the moment but, yes, agre=
ed.
> > > > >=3D3D20
> > > > I will then.
> > > > I added that to my TODO
> > >=3D20
> > > There's already a utility in devel/ncurses called infotocap (and its=
=3D20
> > > corresponding captoinfo) that already does this. Both are links to ti=
c. O=3D
> > ur=3D20
> > > ncurses import includes tic. Looks like all that's needed is add it t=
o=3D20
> > > buildworld.
> > >=3D20
> > > I can look at it later tonight. Seems like a quick win.
> > >=3D20
> > That is not the point, tic won't work here except if create your own ve=
rsio=3D
> > n or
> > use infotocap. Tic is for terminfo databases while we are still using t=
he=3D
> > =3D20
> > termcap for historical reason
>=20
> I'm not suggesting replacing all of termcap. Just adding some converted=
=20
> screen.* entries.
>=20
> >
> > Having both ncurses from ports and ncurses from base installed at the s=
ame =3D
> > time
> > can open a special can of worm so imho that is not really something we =
want=3D
> >  to
> > look forward.
>=20
> Some ports require ncurses from ports. Same can of worms as installing a=
=20
> kerberos or openssl port.
>=20
On head, no ports should have to now.

Best regards,
bapt

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

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

iQIzBAABCAAdFiEEgOTj3suS2urGXVU3Y4mL3PG3PloFAl6wHa0ACgkQY4mL3PG3
PloUlA/9GVRkrCbXok1EWqBBbnFG4Bl2uHtQK48dFkwYKb9OCe+Cb3Ib3JpxXu41
1BQAo07zLvkEFcDl6Vt0I5JvLXstzF2zDFGF46i+/QNGN0vNduNIp8qXD0PrzXAM
djptBSyrcAd5Qubt/8VDpn0tzEZfFB0PFCXkNRihXXRdEG9ZfcGxSsCwoGYnIgRt
ulhulwhs/MEpyXc6tBmiFVxtQC/0vU+/zLYfUHz0GLMy1SWFISKHSOZlqQOP3lrp
/lPbH4hx5f9/df8tx2EPRfgERObhH1yDPh51Qoqj8hJybjJu1HAXdkfS/9sGFY5N
1KPUVfHnMt99VBnxo5DcSfaPPViZqdhs35Yve5gMeF3K0i4weeBC3BjR7OzCDmCS
ae4kQMxl4L2O88qu1lNkFErWO9tfCRnakUEckgIkbIseGZlUQAS5ctfDRSoJuHVn
1M6/ZroP+lLBD8Qh/MM3gespbTVQmR1lCSUCJvRpgpMMBwL/gNf4QkdjoZuDtquR
vFHCbPjowoO5UiMYHlVrk9Z1xXFn/jSeYB9P84/w+Md8W7qh5hGNcJ3y0It0v8PV
M6XCF0c7yXOe+Lk8mkOniUKX/bOD25oRxDXM96Ff/6N4fUe49aTaWBqgTAc45EL9
v+t2UeTWBQJoBklsHAEPRELvkBUKNGrxId5OGLqBV92oZMM12zM=
=3B0R
-----END PGP SIGNATURE-----

--2ep4og2cnix6if2a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200504135037.mcrqeomkkqmoew3w>