Terminals

Using the tools in the toolset one can set up services that handle TUI login on virtual (i.e. not physical hardware) terminals, and that provide virtual terminals entirely within application mode code, supplementing or even replacing the virtual terminals provided by a Linux or BSD operating system kernel.

To log on over virtual terminals, kernel or user-space, one sets up ttylogin services.

To use kernel virtual terminals one arranges for such services to be enabled and (demand-)started.

Setting up user-space virtual terminals involves similar services, additional console-terminal-emulator services, and realizers.

A TUI login service over a physical serial line to a real terminal (or something pretending to be a real terminal) is of course a simple service, started and stopped and enabled and disabled in the usual way. A run script for such a service, in this case to invoke mgetty on /dev/ttyS1, looks like this:

#!/bin/nosh
mgetty ttyS1