Re: /usr/src/etc/rc.d/moused patch

看板DFBSD_submit作者時間21年前 (2004/04/29 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/10 (看更多)
Sascha Wildner wrote: > :-? I turned on debugging in the moused script: <many lines of setup stuff snipped> + debug run_rc_command: evaluating moused_start(). + eval moused_start + moused_start + echo -n Starting moused: + /usr/sbin/moused -p /dev/psm0 -t auto + _mousechar_arg= + vidcontrol -m on ESC[=0AESC[=7FESC[=0GESC[=0HESC[=7Ividcontrol: showing the mouse: Invalid argument + echo . + _return=0 I don't know where that string of control characters comes from. Below is the relevant part of your moused script. Does it look correct? From the debugging output above it looks like the 'case' statement never ran, but I'm not certain: viddev=/dev/ttyv0 moused_start() { echo -n 'Starting moused:' /usr/sbin/moused ${moused_flags} -p ${moused_port} -t ${moused_type} _mousechar_arg= case ${mousechar_start} in [Nn][Oo] | '') ;; *) echo -n ' mousechar_start' _mousechar_arg="-M ${mousechar_start}" ;; esac vidcontrol < ${viddev} ${_mousechar_arg} -m on echo '.' }
文章代碼(AID): #10a68D00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #10a68D00 (DFBSD_submit)