Date: Wed, 5 Dec 2001 16:09:02 -0200 From: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> To: freebsd-hackers@FreeBSD.org Subject: rxvt terminal detection patch Message-ID: <20011205180924.20369.qmail@exxodus.fedaykin.here>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011205180924.20369.qmail>
