diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-15 23:49:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-15 23:49:02 +0100 |
commit | e3aa71c38cbecb24e6333411ee19814796a5b1d0 (patch) | |
tree | 5ae80b4fcbf3bc4f93e3905cecab2fc40f1cb1da /src/test-strv.c | |
parent | 96a8cbfae1b37cf0a9c0591bfef93f9de1561bc4 (diff) |
exec: automatically determine right TERM= setting based on tty name
Diffstat (limited to 'src/test-strv.c')
-rw-r--r-- | src/test-strv.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test-strv.c b/src/test-strv.c index 573436896b..cfbf7fddc9 100644 --- a/src/test-strv.c +++ b/src/test-strv.c @@ -37,5 +37,18 @@ int main(int argc, char *argv[]) { free(t); } + printf("%s\n", default_term_for_tty("/dev/tty23")); + printf("%s\n", default_term_for_tty("/dev/ttyS23")); + printf("%s\n", default_term_for_tty("/dev/tty0")); + printf("%s\n", default_term_for_tty("/dev/pty0")); + printf("%s\n", default_term_for_tty("/dev/pts/0")); + printf("%s\n", default_term_for_tty("/dev/console")); + printf("%s\n", default_term_for_tty("tty23")); + printf("%s\n", default_term_for_tty("ttyS23")); + printf("%s\n", default_term_for_tty("tty0")); + printf("%s\n", default_term_for_tty("pty0")); + printf("%s\n", default_term_for_tty("pts/0")); + printf("%s\n", default_term_for_tty("console")); + return 0; } |