From owner-dev-commits-src-main@freebsd.org Fri Feb 26 17:35:07 2021 Return-Path: Delivered-To: dev-commits-src-main@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 45ADE5481F7 for ; Fri, 26 Feb 2021 17:35:07 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DnGy31NKnz4c30 for ; Fri, 26 Feb 2021 17:35:07 +0000 (UTC) (envelope-from jrtc27@jrtc27.com) Received: by mail-wr1-f44.google.com with SMTP id d11so9342216wrj.7 for ; Fri, 26 Feb 2021 09:35:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cay5WnZ2r5olDsmFyRwEJBmZXSAO+cItbrUzoyRlQL8=; b=sC0Odo5aW9ws3arHZ2cQpLBSa8/D2nU6W2b9clmGCa0m/lIZyWd6sSPG3cKcMyOJ4/ WwftPx++CnmikqOsd4KSXF5uoDTp8zHpOtiZhTfXUXQmxvcXYWfKAEwe0gTIDVb65Wa/ xVfkbPLPVYV+1Fw8RXk5KUmLDf1EhAVD3w5sbi5Iu+6k+98RmR/QUDkBsHIUda5qazE6 70H5OUbDxKrtNBnjnK51/fX6PmX90pvc1Vg7fXSzOIZqDxGFogclBAJSKmxCJbIAJfzp trMdGe83VwqN4utKWg4kfyj1byylDcDBvb+EiLuSWlq7K2FpK7azg/b9sTg7OBA6J7GS YQ7Q== X-Gm-Message-State: AOAM533Zfxv91M3kH/EoT8Z7agzwDuJSgmbsoFzyGLTmjdbMD7YXpj68 6NZSVGK+om5dy9PZV4NCaMLvKQ== X-Google-Smtp-Source: ABdhPJw+xMLb9hX/iP4KDwac3KhkVXdjb9n6es6YmmQ8thiMUWnNPvDqX8rMeFFKtrBt95otHHmd2w== X-Received: by 2002:a5d:620d:: with SMTP id y13mr4336055wru.88.1614360903870; Fri, 26 Feb 2021 09:35:03 -0800 (PST) Received: from [192.168.149.251] (trinity-students-nat.trin.cam.ac.uk. [131.111.193.104]) by smtp.gmail.com with ESMTPSA id a14sm16215317wrg.84.2021.02.26.09.35.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Feb 2021 09:35:03 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: git: 2a50a9de8340 - main - terminfo: add terminfo database From: Jessica Clarke In-Reply-To: <202102261730.11QHUh8n031156@gndrsh.dnsmgr.net> Date: Fri, 26 Feb 2021 17:35:02 +0000 Cc: Cy Schubert , Baptiste Daroussin , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <21D85CEB-44CC-4BC6-BBD3-358383681109@freebsd.org> References: <202102261730.11QHUh8n031156@gndrsh.dnsmgr.net> To: rgrimes@freebsd.org X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Rspamd-Queue-Id: 4DnGy31NKnz4c30 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-main@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for the main branch of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2021 17:35:07 -0000 > On 26 Feb 2021, at 17:30, Rodney W. Grimes = wrote: >=20 >> In message <202102251327.11PDR4eC083842@gitrepo.freebsd.org>, = Baptiste=20 >> Daroussi >> n writes: >>> The branch main has been updated by bapt: >>>=20 >>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D2a50a9de8340f08bd876e9e5993332ae= >>> 14376f80 >>>=20 >>> commit 2a50a9de8340f08bd876e9e5993332ae14376f80 >>> Author: Baptiste Daroussin >>> AuthorDate: 2021-02-23 16:17:32 +0000 >>> Commit: Baptiste Daroussin >>> CommitDate: 2021-02-25 13:25:32 +0000 >>>=20 >>> terminfo: add terminfo database >>>=20 >>> Tested by: manu, jbeich >>> --- >>> share/Makefile | 1 + >>> share/terminfo/Makefile | 34 ++++++++++++++++++++++++++++++++++ >>> 2 files changed, 35 insertions(+) >>>=20 >>> diff --git a/share/Makefile b/share/Makefile >>> index c4e12b05f7db..d6854b230ae5 100644 >>> --- a/share/Makefile >>> +++ b/share/Makefile >>> @@ -26,6 +26,7 @@ SUBDIR=3D ${_colldef} \ >>> ${_syscons} \ >>> tabset \ >>> termcap \ >>> + terminfo \ >>> ${_timedef} \ >>> ${_vt} \ >>> ${_zoneinfo} >>> diff --git a/share/terminfo/Makefile b/share/terminfo/Makefile >>> new file mode 100644 >>> index 000000000000..7bb11f3fdf24 >>> --- /dev/null >>> +++ b/share/terminfo/Makefile >>> @@ -0,0 +1,34 @@ >>> +PACKAGE=3D runtime >>> + >>> +.PATH: ${SRCTOP}/contrib/ncurses/misc >>> +TINFOBUILDDIR=3D ${.OBJDIR}/builddir >>> +CLEANDIRS+=3D builddir >>> + >>> +.include >>> + >>> +.if !defined(_SKIP_BUILD) >>> +all: terminfo >>> +.endif >>> +META_TARGETS+=3D terminfo install-terminfo >>> + >>> +terminfo: terminfo.src >>> + mkdir -p ${TINFOBUILDDIR} >>> + ${TIC_CMD} -x -o ${TINFOBUILDDIR} ${.ALLSRC} >>> + >>> +.if make(*install*) >>> +TINFOS!=3D cd ${TINFOBUILDDIR} && find * -type f | LC_ALL=3DC sort >>> +TINFOSDIRS=3D ${TINFOS:C/(.).*/\1/g:O:u} >>> +.endif >>> + >>> +beforeinstall: install-terminfo >>> +install-terminfo: >>> + mkdir -p ${DESTDIR}/usr/share/terminfo >>> + cd ${DESTDIR}/usr/share/terminfo; mkdir -p ${TINFOSDIRS} >>> +.for f in ${TINFOS} >>> + ${INSTALL} ${TAG_ARGS} \ >>> + -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ >>> + ${TINFOBUILDDIR}/${f} ${DESTDIR}/usr/share/terminfo/${f} >>> +.endfor >>> + >>> +.include >>> + >>>=20 >>=20 >> I think this had some unintended consequences, a POLA violation that = should=20 >> be documented. Our termcap didn't support alternate screen buffers = while=20 >> terminfo does. Termcap did through t_te and t_ti but we didn't use = them.=20 >> Terminfo as delivered from the ncurses factory does supply rmcup and = smcup;=20 >> our fullscreen apps such as nvi and top see them and use the = alternate=20 >> screen buffer. >>=20 >> The use of the alternate screen buffer is one of the things I hate = about=20 >> Linux. After running vi or top I expect the output to remain on the = screen=20 >> so I can use some bit of information in my next command. We now have = this=20 >> behaviour too. >=20 > Oh, I so hate that mis-feature of Linux, please please tell me there = is > a simple knob to turn this off? I believe LESS also does this kind > of stuff, or atleast "man" on linux does, and that pees me off to no > end when I quit the man page and what I wanted is no longer on the = screen. less -X may be what you want (or LESS=3D"-X"). Jess