Closed edmonds closed 1 year ago
Hello,
this is very nice feature! However I don't think new argument needs to be introduced, it could be handled in original --tty
with both variants. The reason is some BSD uses different TTY names conventions and for them --tty
would be useless, if it would support only numbers.
OK, updated it to accept either a name or number for --tty
.
This commit adds a
--tty-name
command-line argument for specifying the TTY by name, e.g.tty7
instead of just7
.This may be a little superfluous since
--tty
already exists, but it allows using a systemd template unit something like the following without using a bare number for the instance name (similar to how the getty unit instances are namedgetty@tty1.service
, etc.):Then one can do
systemctl start emptty@tty7.service
,systemctl start emptty@tty8.service
, etc. to create multiple instances of theemptty
service for several terminals.Thanks!