The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Lyndon Nerenberg <lyndon@orthanc.ca>
To: The Eunuchs Hysterical Society <tuhs@tuhs.org>
Subject: Re: [TUHS] INed/Rand Editor/Ned [was Re: My EuroBSDcon talk (preview for commentary)
Date: Tue, 08 Oct 2019 18:10:15 -0700	[thread overview]
Message-ID: <c0dbd6a7374cc712@orthanc.ca> (raw)
In-Reply-To: <CAKr6gn2Z-CAJeNhxU-paqjVxrBXHuGNukqWn0OVCK5GyYLFKeA@mail.gmail.com>

[Sorry, coming to this thread very late ...]

George Michaelson writes:

> Terminfo just didn't feel very *relevant*

In the sense that we no longer stare down collections of Ann Arbor
Ambassador's with their endless combinations of screen configurations,
or just dealing with adm3a vs. xl83 vs. vtXX0, sure.

But terminfo (or cap) is still relevant to me every day in a couple
of ways, even though my $TERM is almost always 'xterm'.

Lots of terminals have internal memory buffers that curses can take
advantage of.  The most common case is to have a cursor-oriented
application (vi, less, systat) grab on to one of those buffers and
use it while they run, and then restore the original terminal screen
when they exit.  This preserves the shell session context around
the editor/whatever session.  Sometimes this is useful.  Sometimes
it is not.

I happen to dislike that behaviour.  When I'm churning through a
sequence of commands and get to the point where I need to look up
something obscure in the manpage, there's nothing more frustrating
than running 'man foo', finding the section of the manpage that
describes exactly what I need to do, pressing 'q' to exit the pager,
and watching said pager erase the very information I was looking for
just to redraw the screen back to the point where I originally became
lost :-P

terminfo saves me[1] from that behaviour.  The decision about how,
when, or if to use those memory buffers is part of the terminfo
definition for the $TERM I'm using.  So I can customize the inter-
action between xterm and less by writing my own 'xterm' terminfo
definition that doesn't do the memory buffer dance.  POSIX even
defines interfaces such as $TERMINFO and tic(1) that ensure I can
portably push my own 'xterm' definitions around to all the systems
I work on.

But of course, *everybody* knows the entire universe lives in an
ANSI terminal now, so why bother with curses?

This is the same logic that *knows* that nobody in the universe
customizes the colours they use in their terminal sessions, so
they can feel free to make up whatever colour mappings they want.
Don't like it?  Then set our app-specific configuration settings,
or environment variables, or both.  Because, why should we pay
attention to the terminal attribute mappings that have been in
terminfo/curses for how many decades?

--lyndon

[1] OpenBSD is very annoying about this. On every (every!) other
    UNIX variant I use, I can upload and compile my custom
    terminfo 'xterm' definition and It Just Works.  Not OpenBSD ...

  parent reply	other threads:[~2019-10-09  1:10 UTC|newest]

Thread overview: 125+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-13  3:20 [TUHS] " Warner Losh
2019-09-13  9:03 ` Branden Robinson
2019-09-13 19:47 ` Clem Cole
2019-09-13 20:02   ` Clem Cole
2019-09-13 20:06     ` Clem Cole
2019-09-13 20:24       ` Jon Steinhart
2019-09-13 20:43         ` Clem Cole
2019-09-13 20:53           ` Diomidis Spinellis
2019-09-13 21:45             ` Clem Cole
2019-09-13 22:13               ` [TUHS] earliest Unix roff Warren Toomey
2019-09-13 22:55                 ` Clem Cole
2019-09-14  2:02                   ` Larry McVoy
2019-09-14  2:44                     ` Warren Toomey
2019-09-15  2:56                       ` U'll Be King of the Stars
2019-09-15  6:54                         ` arnold
2019-09-15  7:01                           ` Dave Horsfall
2019-09-15 16:17                             ` Jon Steinhart
2019-09-15 17:23                               ` Ronald Natalie
2019-09-15 19:48                             ` Clem Cole
2019-09-15 21:16                               ` Dave Horsfall
2019-09-15  7:32                           ` U'll Be King of the Stars
2019-09-15  7:46                             ` arnold
2019-09-15 19:37                           ` Clem Cole
2019-09-16  5:52                             ` arnold
2019-09-16 12:10                               ` Clem Cole
2019-09-16 12:26                                 ` Lars Brinkhoff
2019-09-16 13:42                                   ` Clem Cole
2019-09-16 14:54                                     ` Larry McVoy
2019-09-16 16:09                                     ` Paul Winalski
2019-09-16 22:05                                     ` Dave Horsfall
2019-09-16 22:33                                       ` reed
2019-09-17  0:11                                         ` Dave Horsfall
2019-09-17  0:02                                       ` Nemo Nusquam
2019-09-17  0:21                                         ` Arthur Krewat
2019-09-17 11:12                                         ` Thomas Paulsen
2019-09-17  0:46                                       ` Clem Cole
2019-09-16 13:13                                 ` Chet Ramey
2019-09-16 14:51                                 ` Larry McVoy
2019-09-16 14:57                                   ` Clem Cole
2019-09-16 15:14                                     ` Richard Salz
2019-09-16 15:48                                       ` Ronald Natalie
2019-09-16 16:10                                       ` Larry McVoy
2019-09-16 16:16                                         ` Jon Steinhart
2019-09-16 16:26                                           ` Larry McVoy
2019-09-16 16:31                                             ` Richard Salz
2019-09-16 16:45                                               ` Larry McVoy
2019-09-16 17:19                                                 ` KatolaZ
2019-09-16 17:24                                                   ` Larry McVoy
2019-09-16 17:32                                                     ` Jon Steinhart
2019-09-16 17:35                                                     ` Clem Cole
2019-09-16 17:37                                                   ` Jon Steinhart
2019-09-16 18:09                                                     ` [TUHS] [OT] " KatolaZ
2019-09-16 18:19                                                       ` Jon Steinhart
2019-09-16 18:04                                                   ` [TUHS] " Chet Ramey
2019-09-16 18:19                                                     ` KatolaZ
2019-09-16 23:24                                                     ` Dave Horsfall
2019-09-16 17:24                                                 ` Clem Cole
2019-09-16 17:00                                               ` Clem Cole
2019-09-17 11:20                                         ` Thomas Paulsen
2019-09-16 19:13                                       ` Steffen Nurpmeso
2019-09-16 19:31                                       ` Bakul Shah
2019-09-16 22:35                                     ` Dave Horsfall
2019-09-17  7:53                                   ` arnold
2019-09-17 14:21                                     ` Clem Cole
2019-09-17 15:03                                       ` arnold
2019-09-17 15:58                                     ` Christopher Browne
2019-09-17 18:15                                       ` arnold
2019-09-17 18:32                                         ` Warner Losh
2019-09-18  0:42                                         ` Adam Thornton
2019-09-16 21:42                                 ` Dave Horsfall
2019-09-16 21:48                                   ` Larry McVoy
2019-09-16 21:54                                     ` Jon Steinhart
2019-09-16 21:59                                       ` Larry McVoy
2019-09-17  5:07                                         ` Lars Brinkhoff
2019-09-16 22:10                                       ` Bakul Shah
2019-09-17  0:16                                   ` Greg 'groggy' Lehey
2019-09-17  0:31                                     ` Jon Steinhart
2019-09-17 12:20                                     ` David
2019-10-05 19:44                                 ` Michael Parson
2019-09-15 19:35                         ` Clem Cole
2019-09-15 20:49                           ` U'll Be King of the Stars
2019-09-16  6:20                             ` arnold
2019-09-16 12:13                               ` Clem Cole
2019-09-16 12:34                                 ` arnold
2019-09-16 14:52                                 ` Larry McVoy
2019-09-17  0:10                               ` [TUHS] O'Reilly groff macros (was: earliest Unix roff) Greg 'groggy' Lehey
2019-09-17  0:51                                 ` Clem Cole
2019-09-17  0:54                                   ` [TUHS] O'Reilly groff macros U'll Be King of the Stars
2019-09-17  1:03                                     ` Clem Cole
2019-09-17  1:41                                     ` Greg 'groggy' Lehey
2019-09-17  1:58                                       ` Clem cole
2019-09-15 19:27                       ` [TUHS] earliest Unix roff Clem Cole
2019-09-15 19:31                         ` Jon Steinhart
2019-09-14  7:35               ` [TUHS] My EuroBSDcon talk (preview for commentary) Diomidis Spinellis
2019-09-13 21:31       ` Clem Cole
2019-09-17 19:29         ` Warner Losh
2019-09-17 20:17           ` Clem Cole
2019-09-17 19:18       ` Warner Losh
2019-09-17 20:13         ` Clem Cole
2019-09-13 20:06     ` Larry McVoy
2019-09-14  6:13   ` Wesley Parish
2019-09-15 21:46 ` Clem Cole
2019-09-15 23:25   ` Bakul Shah
2019-09-15 23:35     ` Clem cole
2019-09-16  1:42     ` Warner Losh
2019-09-16  1:52       ` Clem cole
2019-09-16  2:05         ` George Michaelson
2019-09-16  2:37           ` Bakul Shah
2019-09-16  3:29             ` [TUHS] INed/Rand Editor/Ned [was " Charles H. Sauer
2019-09-16 14:53               ` Clem Cole
2019-09-16 16:16                 ` Warner Losh
2019-09-16 20:21                   ` G. Branden Robinson
2019-09-16 20:47                     ` Jon Steinhart
2019-09-16 22:33                       ` George Michaelson
2019-09-16 23:14                         ` G. Branden Robinson
2019-10-09  1:10                         ` Lyndon Nerenberg [this message]
2019-09-16 22:48                       ` [TUHS] better ways and termcap vs. terminfo " G. Branden Robinson
2019-09-17 11:46                     ` [TUHS] INed/Rand Editor/Ned [was Re: My EuroBSDcon talk (preview " Theodore Y. Ts'o
2019-09-17 12:52                       ` G. Branden Robinson
2019-10-09  0:38                   ` Lyndon Nerenberg
2019-09-16  1:31   ` [TUHS] " William Pechter
2019-09-16  1:48     ` Clem cole
2019-09-16  2:24     ` Dave Horsfall
2019-09-16  2:31       ` Toby Thain
2019-09-16  3:36   ` Theodore Y. Ts'o

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c0dbd6a7374cc712@orthanc.ca \
    --to=lyndon@orthanc.ca \
    --cc=tuhs@tuhs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).