summaryrefslogtreecommitdiff
path: root/rc/bin/screenrc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-09-20 12:25:01 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-09-20 12:25:01 +0200
commitd1315ade4171b25039a60b01d8fd8f39d822cc10 (patch)
tree50dc1dae935522b2e805c29e33b346b6c4a894f9 /rc/bin/screenrc
parent30a9d5907018a578873bff2f7f1eaccfcc4d5a1f (diff)
libdraw, screenrc: bind devdraw and devmouse in screenrc instead of handling it in libdraw
libdraw was attempting to bind '#i' and '#m' to /dev when it could not find /dev/mouse or /dev/draw. a library shouldnt be that clever and do namespace manipulations on behalf of the caller. so instead, we setup the graphics environment in screenrc on boot time.
Diffstat (limited to 'rc/bin/screenrc')
-rwxr-xr-xrc/bin/screenrc8
1 files changed, 7 insertions, 1 deletions
diff --git a/rc/bin/screenrc b/rc/bin/screenrc
index 5aaebca68..5a432c9d0 100755
--- a/rc/bin/screenrc
+++ b/rc/bin/screenrc
@@ -35,7 +35,13 @@ if(test -f /dev/vgactl){
}
}
-if(test -f /dev/mousectl && test -f '#i/winname'){
+if(! test -d /dev/draw)
+ bind -a '#i' /dev
+
+if(! test -f /dev/mouse)
+ bind -a '#m' /dev
+
+if(test -f /dev/mousectl && test -f /dev/winname){
ask mouseport ' is (ps2, ps2intellimouse, 0, 1, 2)' ps2
switch($mouseport){
case ps2 ps2intellimouse 0 1 2