Subject: Re: dynamic sysctl
To: David Laight <david@l8s.co.uk>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 11/16/2003 21:06:36
>> >hw.cnmagic is printed using printable characters in current.
>> >(hw.cnmagic = \x27\x02)
>>
>> yes, but i'm not entirely certain the way it all works in current does
>> all that mr woods is asking for.
>
>Neither am I, I didn't even know what hw.cnmagic was for when I changed
>sysctl - I just knew that outputting random byte values is bad news.
>Try recovering an async terminal after it has been sent an ^S ....
fwiw, my way already seems somewhat better...
first, the old way:
# sysctl hw.cnmagic
hw.cnmagic = \x27\x02
# sysctl -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27
# sysctl -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27
# sysctl -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27
now the new way:
# sysctl2 hw.cnmagic
hw.cnmagic = \x27\x02
# sysctl2 -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27\x02
# sysctl2 -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27\x02
# sysctl2 -w hw.cnmagic=\'^B
hw.cnmagic = \x27\x02 -> \x27\x02
and i wasn't even thinking about that case. ;-)
--
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org * "ah! i see you have the internet
twofsonet@graffiti.com (Andrew Brown) that goes *ping*!"
werdna@squooshy.com * "information is power -- share the wealth."