diff options
author | rsc <devnull@localhost> | 2005-11-11 08:01:37 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-11 08:01:37 +0000 |
commit | 21d0dda69c58e33b1881b55d8cb293a45ffc2691 (patch) | |
tree | 3f55ffa662a30983fca4d5bfacd825864f446f35 | |
parent | cf21e2e6fcaec90de18a4501dbac181148d4505e (diff) | |
download | plan9port-21d0dda69c58e33b1881b55d8cb293a45ffc2691.tar.gz plan9port-21d0dda69c58e33b1881b55d8cb293a45ffc2691.tar.bz2 plan9port-21d0dda69c58e33b1881b55d8cb293a45ffc2691.zip |
fix -f
-rw-r--r-- | src/cmd/9term/9term.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 686f3aa2..06ac09d1 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -48,7 +48,7 @@ usage(void) void threadmain(int argc, char *argv[]) { - char *p, *font; + char *p; rfork(RFNOTEG); font = nil; @@ -60,7 +60,7 @@ threadmain(int argc, char *argv[]) default: usage(); case 'f': - font = EARGF(usage()); + fontname = EARGF(usage()); break; case 's': scrolling = TRUE; @@ -73,9 +73,9 @@ threadmain(int argc, char *argv[]) break; }ARGEND - if(font) - putenv("font", font); - + if(fontname) + putenv("font", fontname); + p = getenv("tabstop"); if(p == 0) p = getenv("TABSTOP"); @@ -86,8 +86,8 @@ threadmain(int argc, char *argv[]) free(p); startdir = "."; - - initdraw(derror, nil, "9term"); + + initdraw(derror, fontname, "9term"); notify(hangupnote); noteenable("sys: child"); |