summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/wind.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-05-07 19:05:12 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2017-05-07 19:05:12 +0200
commitbff4fad52a4c3387db54195c9fc20fb69247c43c (patch)
tree49f4ef1dd6587abb727a15f536451719071c9eb9 /sys/src/cmd/rio/wind.c
parent7327bd43c039d0ce2f4052afac04204718d9e69c (diff)
rio: implement writable and truncatable /dev/text
Diffstat (limited to 'sys/src/cmd/rio/wind.c')
-rw-r--r--sys/src/cmd/rio/wind.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/rio/wind.c b/sys/src/cmd/rio/wind.c
index 7dc9e30e2..0cbcfc7a8 100644
--- a/sys/src/cmd/rio/wind.c
+++ b/sys/src/cmd/rio/wind.c
@@ -1198,6 +1198,9 @@ wctlmesg(Window *w, int m, Rectangle r, void *p)
wrepaint(w);
flushimage(display, 1);
break;
+ case Truncate:
+ wdelete(w, 0, w->nr);
+ break;
case Deleted:
wclunk(w);
if(w->notefd >= 0)