diff --git a/src/getty.c b/src/getty.c index ff80db3a..7b7b0ac4 100644 --- a/src/getty.c +++ b/src/getty.c @@ -341,6 +341,8 @@ int getty(char *tty, char *baud, char *term, char *user) stty(fd, speed); close(fd); utmp_set_login(tty, NULL); + if (term) + setenv("TERM", term, 1); if (!user) do_getty(tty, name, sizeof(name));