summaryrefslogtreecommitdiff
path: root/sys/src/cmd
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-11-23 00:50:44 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-11-23 00:50:44 +0100
commit518fd3ec8350a010e5ed6490e1106c66af8f4d02 (patch)
tree5a15adfe8b2dbd7d12cb5b5f19f8843bb587191e /sys/src/cmd
parent569bdd00c2d3df235ed42abce09d286f30e0edbd (diff)
rio: stop serving kbdin file (thanks eekee)
kbdfs already provides a /dev/kbdin file for the system, rio does not need to provide one for the onscreen keyboard anymore.
Diffstat (limited to 'sys/src/cmd')
-rw-r--r--sys/src/cmd/rio/dat.h1
-rw-r--r--sys/src/cmd/rio/fns.h1
-rw-r--r--sys/src/cmd/rio/fsys.c1
-rw-r--r--sys/src/cmd/rio/rio.c23
-rw-r--r--sys/src/cmd/rio/xfid.c10
5 files changed, 0 insertions, 36 deletions
diff --git a/sys/src/cmd/rio/dat.h b/sys/src/cmd/rio/dat.h
index 6fba1af49..e1cf5523f 100644
--- a/sys/src/cmd/rio/dat.h
+++ b/sys/src/cmd/rio/dat.h
@@ -7,7 +7,6 @@ enum
Qwdir,
Qwinid,
Qwinname,
- Qkbdin,
Qlabel,
Qkbd,
Qmouse,
diff --git a/sys/src/cmd/rio/fns.h b/sys/src/cmd/rio/fns.h
index 702eb101e..5c23587d6 100644
--- a/sys/src/cmd/rio/fns.h
+++ b/sys/src/cmd/rio/fns.h
@@ -1,4 +1,3 @@
-void keyboardsend(char*, int);
int whide(Window*);
int wunhide(Window*);
void freescrtemps(void);
diff --git a/sys/src/cmd/rio/fsys.c b/sys/src/cmd/rio/fsys.c
index 94a35442f..c1ab79b53 100644
--- a/sys/src/cmd/rio/fsys.c
+++ b/sys/src/cmd/rio/fsys.c
@@ -27,7 +27,6 @@ Dirtab dirtab[]=
{ "consctl", QTFILE, Qconsctl, 0200 },
{ "winid", QTFILE, Qwinid, 0400 },
{ "winname", QTFILE, Qwinname, 0400 },
- { "kbdin", QTFILE, Qkbdin, 0200 },
{ "label", QTFILE, Qlabel, 0600 },
{ "kbd", QTFILE, Qkbd, 0600 },
{ "mouse", QTFILE, Qmouse, 0600 },
diff --git a/sys/src/cmd/rio/rio.c b/sys/src/cmd/rio/rio.c
index 052dcaff3..424b28640 100644
--- a/sys/src/cmd/rio/rio.c
+++ b/sys/src/cmd/rio/rio.c
@@ -361,29 +361,6 @@ keyboardthread(void*)
}
}
-/*
- * Used by /dev/kbdin
- */
-void
-keyboardsend(char *s, int cnt)
-{
- if(cnt <= 0)
- return;
- if(s[cnt-1] == 0)
- chanprint(kbdchan, "%s", s);
- else {
- Rune r;
- int nb;
-
- nb = 0;
- while(fullrune(s+nb, cnt-nb)){
- nb += chartorune(&r, s+nb);
- if(r != 0)
- chanprint(kbdchan, "c%C", r);
- }
- }
-}
-
int
portion(int x, int lo, int hi)
{
diff --git a/sys/src/cmd/rio/xfid.c b/sys/src/cmd/rio/xfid.c
index 91ee4897e..4100794a3 100644
--- a/sys/src/cmd/rio/xfid.c
+++ b/sys/src/cmd/rio/xfid.c
@@ -257,12 +257,6 @@ xfidopen(Xfid *x)
}
w->ctlopen = TRUE;
break;
- case Qkbdin:
- if(w != wkeyboard){
- filsysrespond(x->fs, x, &t, Eperm);
- return;
- }
- break;
case Qkbd:
if(w->kbdopen){
filsysrespond(x->fs, x, &t, Einuse);
@@ -561,10 +555,6 @@ xfidwrite(Xfid *x)
w->dir = cleanname(p);
break;
- case Qkbdin:
- keyboardsend(x->data, cnt);
- break;
-
case Qwctl:
if(writewctl(x, err) < 0){
filsysrespond(x->fs, x, &fc, err);