[systemd-devel] [QUERY] getty and terminfo
Lennart Poettering
lennart at poettering.net
Sun Jul 21 16:39:36 PDT 2013
On Sun, 21.07.13 00:17, Ramkumar Ramachandra (artagnon at gmail.com) wrote:
Heya,
> I noticed that my TERM is set to "linux", even when I boot the
> console-getty.service. Isn't it supposed to be "console" instead,
> since VT emulation is not guaranteed? Should we explicitly pass the
> term argument to agetty?
We have some code in place that follows where the console is pointing
and then determines the right default TERM from that. It uses
/sys/class/tty/console/active for this.
See default_term_for_tty(), tty_is_vc_resolve(), tty_is_vc() and
resolve_dev_console() in src/shared/util.c for details.
Lennart
--
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel
mailing list