From be36ff68854c86247fdc769c0eaa89eb284b5ca7 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 29 Apr 2004 17:13:24 +0000 Subject: add -W to specify window size. various other little fixes. --- src/cmd/sam/sam.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/cmd/sam') 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){ -- cgit v1.2.3