Introduction
Introduction Statistics Contact Development Disclaimer Help
talways be honest about tabstop. - plan9port - [fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port
Log
Files
Refs
README
LICENSE
---
commit 2d930d45526d0f7d452d4f13933dd205f42a90e8
parent 4a4a7c3e5b24c8b8f0625d8bbf0697ab94e45bb6
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(-)
---
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);
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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.