always be honest about tabstop.

This commit is contained in:
rsc 2004-04-25 20:49:44 +00:00
parent 4a4a7c3e5b
commit 2d930d4552
2 changed files with 7 additions and 1 deletions

View file

@ -194,6 +194,7 @@ void
threadmain(int argc, char *argv[])
{
char *p, *font;
char buf[32];
rfork(RFNOTEG);
font = nil;
@ -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);

View file

@ -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);