On Tue, 24 Oct 2023 10:12:12 +0100, Stuart Henderson wrote: > On 2023/10/24 08:21, Nicholas Marriott wrote: > > I can't see what is different in tset, both old and new should just > > send is2 and that hasn't changed as far as I can tell. > > > > Can someone show me the output of this from before the ncurses update > > (maybe 7.4-release): > > > > /usr/bin/tset -sQ '-munknown:?vt220' vt220 2>&1|cat -v > > With older curses, this calls ioctl TIOCGETA on stderr and fails. > > 81046 tset CALL ioctl(2,TIOCGETA,0x798691d3a00) 81046 tset > RET ioctl -1 errno 25 Inappropriate ioctl for device
Perhaps we should just use the -I flag in the startup files for all terminals. I don't know that terminal initialization is useful for anything other than real (not emulated) terminals. If someone wants to hook up a real vt100 they can remove the -I flag. - todd Index: etc/skel/dot.login =================================================================== RCS file: /cvs/src/etc/skel/dot.login,v retrieving revision 1.6 diff -u -p -u -r1.6 dot.login --- etc/skel/dot.login 15 Dec 2015 16:37:58 -0000 1.6 +++ etc/skel/dot.login 24 Oct 2023 19:43:51 -0000 @@ -3,11 +3,7 @@ # csh login file if ( ! $?TERMCAP ) then - if ( $?XTERM_VERSION ) then - tset -IQ '-munknown:?vt220' $TERM - else - tset -Q '-munknown:?vt220' $TERM - endif + tset -IQ '-munknown:?vt220' $TERM endif stty newcrt crterase Index: etc/root/dot.login =================================================================== RCS file: /cvs/src/etc/root/dot.login,v retrieving revision 1.14 diff -u -p -u -r1.14 dot.login --- etc/root/dot.login 20 Dec 2009 15:35:35 -0000 1.14 +++ etc/root/dot.login 24 Oct 2023 19:42:22 -0000 @@ -5,11 +5,7 @@ if ( -x /usr/bin/tset ) then set noglob histchars="" onintr finish - if ( $?XTERM_VERSION ) then - eval `tset -IsQ '-munknown:?vt220' $TERM` - else - eval `tset -sQ '-munknown:?vt220' $TERM` - endif + eval `tset -IsQ '-munknown:?vt220' $TERM` finish: unset noglob histchars onintr Index: etc/root/dot.profile =================================================================== RCS file: /cvs/src/etc/root/dot.profile,v retrieving revision 1.9 diff -u -p -u -r1.9 dot.profile --- etc/root/dot.profile 13 Dec 2010 12:54:31 -0000 1.9 +++ etc/root/dot.profile 24 Oct 2023 19:44:21 -0000 @@ -11,11 +11,7 @@ umask 022 case "$-" in *i*) # interactive shell if [ -x /usr/bin/tset ]; then - if [ X"$XTERM_VERSION" = X"" ]; then - eval `/usr/bin/tset -sQ '-munknown:?vt220' $TERM` - else - eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM` - fi + eval `/usr/bin/tset -IsQ '-munknown:?vt220' $TERM` fi ;; esac