Date: Tue, 5 Mar 2002 10:24:23 -0500 From: Leo Bicknell <bicknell@ufp.org> To: Paul Halliday <dp@penix.org> Cc: Patrick Thomas <root@utility.clubscholarship.com>, freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: cannot get more than 32 PTYs in 4.4-RELEASE Message-ID: <20020305152423.GA45816@ussenterprise.ufp.org> In-Reply-To: <Pine.LNX.4.33.0203050707190.6811-100000@saruman.xwin.net> References: <20020304233607.E3757-100000@utility.clubscholarship.com> <Pine.LNX.4.33.0203050707190.6811-100000@saruman.xwin.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020305152423.GA45816>