Commit Graph

17 Commits

Author SHA1 Message Date
abs 039df638d6 Switch default console tty from /dev/console to /dev/constty
With this switch processes (such as xconsole) can open /dev/console
without breaking login on the text or serial console. This can be
trivially triggered by enabling xdm in rc.conf and hitting
Ctrl+Alt+F1 or equivalent once booted.

The changes:
- Add entry for /dev/console or /dev/constty if missing
- If a port's had /dev/console 'on' switch it off and enable /dev/constty
- If a port did not have /dev/console 'on', leave /dev/constty off

Some ports had /dev/console off and /dev/ttyE0 enabled, presumably to
avoid just this issue. It may make sense to adjust these also (but not
in this pass)

As discussed on current-users
2019-09-25 23:09:19 +00:00
macallan cb9b109d3a do as sparc64 does and switch the default terminal type to wsvt25 2012-06-26 02:05:43 +00:00
macallan 1cbbd12ac0 do as sparc64 does 2008-12-14 03:37:21 +00:00
abs 3388ad407f Add a constty entry, marked 'off', with otherwise the same settings
as the console. Now when coming up in single user mode the tset in
/.profile can set the terminal type correctly.
Note: I believe constty should be 'on' and console 'off', but thats a
separate discussion
2008-10-07 10:00:00 +00:00
christos 0553899e97 remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.
2004-06-20 21:30:26 +00:00
dsl 5c2824bce4 Revert 'console' back to /dev/console (from /dev/constty) 2003-10-04 07:41:11 +00:00
dsl e5217087d8 Change 'console' login to use /dev/constty so that its output isn't
stolen by code that requests system messages using TIOCCONS.
2003-10-03 14:54:20 +00:00
martti 8f0fa118e2 Added ttyp[g-zA-Z] (bin/15594). 2002-02-13 09:46:01 +00:00
mason ee4a3af175 This should be the final part of moving to 64 PTYs by default. Added
entries for tty{r,s}{0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f} to /etc/ttys.

Thanks to Matthew Green for pointing out the need.
2000-08-12 13:43:40 +00:00
perry 31a32e5502 RCS Id Police. 1998-01-09 06:09:38 +00:00
pk 7ddac63472 Use suncons gettytab entry for console. 1995-10-11 20:01:55 +00:00
deraadt b9a452cc0c reality 1994-02-05 12:49:02 +00:00
cgd 4543c1ebfd changes from 0.9-ALPHA2 to 0.9-BETA 1993-08-23 04:59:38 +00:00
mycroft 37fbd45af1 Remove a spurious `unknown' that was screwing people over. 1993-07-10 21:23:36 +00:00
cgd d8795500f2 changes for init... 1993-07-08 01:50:42 +00:00
cgd 9d0d894beb changed `console' to `vga' 1993-04-02 08:05:12 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00