From owner-freebsd-hackers Wed Dec 5 11: 5:26 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from heaven.gigo.com (gigo.com [207.173.11.186]) by hub.freebsd.org (Postfix) with ESMTP id 661F237B417 for ; Wed, 5 Dec 2001 11:05:19 -0800 (PST) Received: from 200.181.48.31 (unknown [200.181.48.31]) by heaven.gigo.com (Postfix) with ESMTP id 47BF5B8BD for ; Wed, 5 Dec 2001 11:01:26 -0800 (PST) Received: (qmail 20370 invoked by uid 1001); 5 Dec 2001 18:09:24 -0000 Message-ID: <20011205180924.20369.qmail@exxodus.fedaykin.here> Date: Wed, 5 Dec 2001 16:09:02 -0200 From: Mario Sergio Fujikawa Ferreira To: freebsd-hackers@FreeBSD.org Subject: rxvt terminal detection patch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.4-STABLE X-Disclaimer: I hope you find what you are looking for... in life :) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I received the following email regarding terminal detection. Does this looks sane? Any comments? I will add this to the rxvt port if I get positive feedback. I believe it is correct but I thought I should ask a broader audiance. Regards, ----- Forwarded message from ----- To: lioux@FreeBSD.org Date: Wed, 12 Sep 2001 16:08:15 +1000 (EST) Message-Id: <200109120608.f8C68Fx70670@mippet.ci.com.au> Subject: rxvt patch Hi there, I have been having problens with rxvt that does not exist in an normal xterm. I was giving me an error message: can't open pseudo-tty I traced this to the get_pty() func in command.c and found FreeBSD uses the PTYS_ARE_SEARCHED define. This is OK except I also found that the PTYCHAR1 and PTYCHAR2 defs did not seam to include all the ptys on a FreeBSD machine. We have many users here and it did not take long before there were no ptys left in the seach. We have all 256 configured. Here is the patch that got me working. I was using the /usr/ports/x11/rxvt (rxvt-2.6.3). Hope this helps. --- src/command.c.orig Wed Sep 12 15:41:30 2001 +++ src/command.c Wed Sep 12 15:42:37 2001 @@ -321,8 +321,8 @@ ptydev = pty_name; ttydev = tty_name; -# define PTYCHAR1 "pqrstuvwxyz" -# define PTYCHAR2 "0123456789abcdef" +# define PTYCHAR1 "pqrstuvPQRSTUV" +# define PTYCHAR2 "0123456789abcdefghijklmnopqrstuv" for (c1 = PTYCHAR1; *c1; c1++) { ptydev[len] = ttydev[len] = *c1; for (c2 = PTYCHAR2; *c2; c2++) { -- Daryl Sayers Corinthian Engineering Ph: (02) 9906 7866 Suite 19, 401 Pacific Hwy Fax: (02) 9906 1556 Artarmon, NSW, 2064 email: daryl@ci.com.au Australia www: http://www.cordoors.com.au ----- End forwarded message ----- -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." Computer Science Undergraduate | FreeBSD Committer | CS Developer flames to beloved devnull@someotherworldbeloworabove.org feature, n: a documented bug | bug, n: an undocumented feature To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message