URI: 
       talways be honest about tabstop. - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit 2d930d45526d0f7d452d4f13933dd205f42a90e8
   DIR parent 4a4a7c3e5b24c8b8f0625d8bbf0697ab94e45bb6
  HTML Author: rsc <devnull@localhost>
       Date:   Sun, 25 Apr 2004 20:49:44 +0000
       
       always be honest about tabstop.
       
       Diffstat:
         M src/cmd/9term/9term.c               |       6 +++++-
         M src/cmd/9term/win.c                 |       2 ++
       
       2 files changed, 7 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
       t@@ -194,6 +194,7 @@ void
        threadmain(int argc, char *argv[])
        {
                char *p, *font;
       +        char buf[32];
        
                rfork(RFNOTEG);
                font = nil;
       t@@ -225,7 +226,10 @@ threadmain(int argc, char *argv[])
                if(p != 0 && maxtab <= 0)
                        maxtab = strtoul(p, 0, 0);
                if(maxtab <= 0)
       -                maxtab = 8;
       +                maxtab = 4;        /* be like rio */
       +
       +        snprint(buf, sizeof buf, "%d", maxtab);
       +        putenv("tabstop", maxtab);
        
                initdraw(0, nil, "9term");
                notify(hangupnote);
   DIR diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
       t@@ -141,6 +141,8 @@ threadmain(int argc, char **argv)
                if(ctlfd == 0 || fsread(ctlfd, buf, 12) != 12)
                        sysfatal("ctl: %r");
                id = atoi(buf);
       +        snprint(buf, sizeof buf, "%d", id);
       +        putenv("winid", buf);
                sprint(buf, "%d/tag", id);
                fd = fsopenfd(fs, buf, OWRITE|OCEXEC);
                write(fd, " Send Delete", 12);