In a message written on Tue, Mar 05, 2002 at 07:52:09AM -0600, Paul Halliday wrote:
> pty*)
> class=`expr $i : 'pty\(.*\)'`
> case $class in
> 0) offset=0 name=p;;
> 1) offset=32 name=q;;
> 2) offset=64 name=r;;
> 3) offset=96 name=s;;
>
> interestingly enough the command "./MAKEDEV pty3" will create (as
> indicated) heh.. I was assuming too much, something is screwy here.
>
> *confused*
>
> it actually only created 64 terminals. Added the line:
>
> 4) offset=192 name=t;;
>
> ~# ./MAKEDEV pty4 && kill -HUP 1
>
> interesting, now I have 96, but can only use 64. Reboot..
I think if you look at a more recent MAKEDEV, you'll find your answer:
pty*)
class=`expr $i : 'pty\(.*\)'`
case $class in
0) offset=0 name=p;;
1) offset=32 name=q;;
2) offset=64 name=r;;
3) offset=96 name=s;;
# Note that xterm (at least) only look at p-s.
4) offset=128 name=P;;
5) offset=160 name=Q;;
6) offset=192 name=R;;
7) offset=224 name=S;;
# This still leaves [tuTU].
So:
sh MAKEDEV pty0 # 0-31
sh MAKEDEV pty1 # 32-63
sh MAKEDEV pty2 # 64-95
sh MAKEDEV pty3 # 96-127
sh MAKEDEV pty4 # 128-159 xterm won't recognize by default
sh MAKEDEV pty5 # 160-191 xterm won't recognize by default
sh MAKEDEV pty6 # 192-223 xterm won't recognize by default
sh MAKEDEV pty7 # 224-255 xterm won't recognize by default
It's fairly trival to patch xterm to look for additional letters. It
may have made it in the XFree source already. *shrug*
--
Leo Bicknell - [EMAIL PROTECTED] - CCIE 3440
PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - [EMAIL PROTECTED], www.tmbg.org
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message