projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
tabs.c
diff --git
a/usr/src/cmd/tabs.c
b/usr/src/cmd/tabs.c
index
19ed331
..
030ca85
100644
(file)
--- a/
usr/src/cmd/tabs.c
+++ b/
usr/src/cmd/tabs.c
@@
-59,6
+59,7
@@
int argc; char **argv;
{
struct sgttyb tb;
int type;
+ char *getenv();
type=0;
if (argc>=2 && strcmp(argv[1],"-n")==0) {
@@
-66,6
+67,8
@@
int argc; char **argv;
}
if (argc>=2) {
type=syslook(argv[1]);
+ } else {
+ type=syslook(getenv("TERM"));
}
switch(type) {