Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys PR/56496: Hauke Fath: etcupdate(8) merge formatting ...
details: https://anonhg.NetBSD.org/src/rev/87dad775a726
branches: trunk
changeset: 1026367:87dad775a726
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 20 14:52:22 2021 +0000
description:
PR/56496: Hauke Fath: etcupdate(8) merge formatting issue
Follow suit and turn off OXTABS by default
FreeBSD did that in 1994:
r3505 | wollman | 1994-10-10 20:16:28 -0400 (Mon, 10 Oct 1994) | 5 lines
Turn off OXTABS by default. Inspection of systems here finds no commercial
systems with it on by default (or the equivalent flag) and terminal control
sequences confuse it greatly. (Try running `ls' under bash in an XTerm,
for instance.)
OpenBSD did that in 2019:
date: 2019/03/12 11:01:25; author: nicm; state: Exp; lines: +2 -2;
commitid: XOmQAZHjspUKWzDx;
Almost all terminals now support hardware tabs so default to OXTABS off.
This makes three changes: adds the ht capability to the standard lines
in gettytab(5); removes OXTABS from TTYDEF_OFLAG in ttydefaults.h (the
defaults used by pty(4) - diff from martijn); and only sets OXTABS on
terminals which lack hts and tbc in tset(1) (from Thomas Dickey
upstream).
Addresses problems reported by tedu.
ok millert
diffstat:
sys/sys/ttydefaults.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r daa43877a426 -r 87dad775a726 sys/sys/ttydefaults.h
--- a/sys/sys/ttydefaults.h Sat Nov 20 14:28:29 2021 +0000
+++ b/sys/sys/ttydefaults.h Sat Nov 20 14:52:22 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ttydefaults.h,v 1.16 2008/05/24 14:06:39 yamt Exp $ */
+/* $NetBSD: ttydefaults.h,v 1.17 2021/11/20 14:52:22 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1993
@@ -46,7 +46,7 @@
* Defaults on "first" open.
*/
#define TTYDEF_IFLAG (BRKINT | ICRNL | IMAXBEL | IXON | IXANY)
-#define TTYDEF_OFLAG (OPOST | ONLCR | OXTABS)
+#define TTYDEF_OFLAG (OPOST | ONLCR)
#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
#define TTYDEF_CFLAG (CREAD | CS8 | HUPCL)
#define TTYDEF_SPEED (B9600)
Home |
Main Index |
Thread Index |
Old Index