Very simple C implementation of a UNIX getty, originally from Minix. Initialize and serve a login-terminal for INIT. Also, select the correct speed.
Usage:
getty [-h] [speed]
It is expected that the init that spawns getty has first opened up the TTY and set up STDIN, OUT and ERR.
The original version of this getty stems back to the early 1990's. It was written by Fred van Kempen. It later found its way to Minix, which adopted version 3.4, 02/17/90, and started stripping it down to much of what is its current form. The software was open sourced along with the rest of Minix under the 3-clause BSD license in April, 2000.
This version has been extended and in critical parts rewritten to suit any UNIX system.
-
All the good stuff removed to get a minimal getty, because many modems don't like all that fancy speed detection stuff. 03/03/91 Kees J. Bot mailto:kjb@cs.vu.nl
-
Uname(), termios. More nonsense removed. (The result has only 10% of the original functionality, but a 10x chance of working.) 12/12/92 Kees J. Bot mailto:kjb@cs.vu.nl
-
Customizable login banner. 11/13/95 Kees J. Bot mailto:kjb@cs.vu.nl
-
Suspend/resume signals removed. 2001-04-04 Kees J. Bot mailto:kjb@cs.vu.nl
-
Removed unused custom banner and returned speed option functionality (by simply calling stty). 2012-09-24 T. Veerman
-
Refactored banner code to read std
/etc/issue
instead. Refactored speed handling to use direct termios instead of stty. 2016-07-27 J. Nilsson mailto:troglobit@gmail.com -
Add support for Ctrl-U on
login:
prompt, fix build warnings, use stderr.h
functions for error handling. And more. 2017-09-05 J. Nilsson mailto:troglobit@gmail.com