DragonFly BSD
DragonFly submit List (threaded) for 2004-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


To: Sascha Wildner <saw@xxxxxxxxx>
From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Wed, 28 Apr 2004 07:32:22 -0700

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 '.'
}



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]