]>
Commit | Line | Data |
---|---|---|
7407f4c3 SZ |
1 | diff -Naur mingetty-0.9.4/mingetty.8 mingetty-0.9.4-p/mingetty.8 |
2 | --- mingetty-0.9.4/mingetty.8 Fri Jun 14 15:54:01 1996 | |
3 | +++ mingetty-0.9.4-p/mingetty.8 Wed Jun 14 12:34:28 2000 | |
4 | @@ -26,6 +26,9 @@ | |
5 | .B \-\-long\-hostname | |
6 | By default the hostname is only printed until the first dot. | |
7 | With this option enabled, the full text from gethostname() is shown. | |
8 | +.TP | |
9 | +.B \-\-mono | |
10 | +Set terminal type to "linux-m" instead of default "linux" (for mono consoles) | |
11 | .PP | |
12 | .SH "ISSUE ESCAPES" | |
13 | .B mingetty | |
14 | diff -Naur mingetty-0.9.4/mingetty.c mingetty-0.9.4-p/mingetty.c | |
15 | --- mingetty-0.9.4/mingetty.c Wed Jun 14 12:17:55 2000 | |
16 | +++ mingetty-0.9.4-p/mingetty.c Wed Jun 14 12:36:22 2000 | |
17 | @@ -80,7 +80,8 @@ | |
18 | static int noclear = 0; | |
19 | /* Print the whole string of gethostname() instead of just until the next "." */ | |
20 | static int longhostname = 0; | |
21 | - | |
22 | +/* Set mono terminal type */ | |
23 | +static int mono_term = 0; | |
24 | ||
25 | /* | |
26 | * output error messages | |
27 | @@ -393,6 +394,7 @@ | |
28 | static struct option const long_options[] = { | |
29 | { "noclear", no_argument, &noclear, 1}, | |
30 | { "long-hostname", no_argument, &longhostname, 1}, | |
31 | + { "mono", no_argument, &mono_term, 1}, | |
32 | { 0, 0, 0, 0 } | |
33 | }; | |
34 | ||
35 | @@ -409,9 +411,6 @@ | |
36 | gethostname (hn, MAXHOSTNAMELEN); | |
37 | pid = getpid (); | |
38 | time (&cur_time); | |
39 | -#if 1 | |
40 | - putenv ("TERM=linux"); | |
41 | -#endif | |
42 | ||
43 | while ((c = getopt_long (argc, argv, "", long_options, (int *) 0)) | |
44 | != EOF) { | |
45 | @@ -422,6 +421,12 @@ | |
46 | usage (); | |
47 | } | |
48 | } | |
49 | + | |
50 | + if (mono_term) | |
51 | + putenv ("TERM=linux-m"); | |
52 | + else | |
53 | + putenv ("TERM=linux"); | |
54 | + | |
55 | if (!longhostname && (s = strchr(hn, '.'))) | |
56 | *s = '\0'; | |
57 | tty = argv[optind]; |