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: [EMAIL PROTECTED]
Date: Wed, 12 Sep 2001 16:08:15 +1000 (EST)
Message-Id: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
feature, n: a documented bug | bug, n: an undocumented feature
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message