diff options
author | rsc <devnull@localhost> | 2004-04-29 17:13:24 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-04-29 17:13:24 +0000 |
commit | be36ff68854c86247fdc769c0eaa89eb284b5ca7 (patch) | |
tree | a523e17071eb0e3088f906446b158b3d184b77fe /src/cmd/sam | |
parent | 3d72637f9b4c42b1fc9b7d95d278ea3dd65c748d (diff) | |
download | plan9port-be36ff68854c86247fdc769c0eaa89eb284b5ca7.tar.gz plan9port-be36ff68854c86247fdc769c0eaa89eb284b5ca7.tar.bz2 plan9port-be36ff68854c86247fdc769c0eaa89eb284b5ca7.zip |
add -W to specify window size.
various other little fixes.
Diffstat (limited to 'src/cmd/sam')
-rw-r--r-- | src/cmd/sam/sam.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cmd/sam/sam.c b/src/cmd/sam/sam.c index 078d9439..5a009bb0 100644 --- a/src/cmd/sam/sam.c +++ b/src/cmd/sam/sam.c @@ -29,6 +29,8 @@ File *lastfile; Disk *disk; long seq; +char *winsize; + Rune baddir[] = { '<', 'b', 'a', 'd', 'd', 'i', 'r', '>', '\n'}; void usage(void); @@ -82,6 +84,10 @@ main(int argc, char *argv[]) argc--; break; + case 'W': + --argc, argv++; + break; + default: dprint("sam: unknown flag %c\n", argv[0][1]); exits("usage"); @@ -101,7 +107,7 @@ main(int argc, char *argv[]) if(home == 0) home = "/"; if(!dflag) - startup(machine, Rflag, arg, ap); + startup(machine, Rflag, arg, argv); notify(notifyf); getcurwd(); if(argc>1){ |