summaryrefslogtreecommitdiff
path: root/gnu/lib/libreadline/tcsh_hack.readme
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/lib/libreadline/tcsh_hack.readme')
-rw-r--r--gnu/lib/libreadline/tcsh_hack.readme65
1 files changed, 21 insertions, 44 deletions
diff --git a/gnu/lib/libreadline/tcsh_hack.readme b/gnu/lib/libreadline/tcsh_hack.readme
index 2777512b7918..ed058692a15a 100644
--- a/gnu/lib/libreadline/tcsh_hack.readme
+++ b/gnu/lib/libreadline/tcsh_hack.readme
@@ -1,50 +1,27 @@
-*** readline.c.orig Thu May 5 04:02:17 1994
---- readline.c Mon May 9 00:33:44 1994
+*** rltty.c.orig Tue May 10 02:18:03 1994
+--- rltty.c Tue May 10 03:12:55 1994
***************
-*** 32,37 ****
---- 32,38 ----
-
- #include <stdio.h>
+*** 21,26 ****
+--- 21,27 ----
+ have a copy of the license, write to the Free Software Foundation,
+ 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/types.h>
+ #include <sys/ioctl.h>
- #include <fcntl.h>
- #include <sys/file.h>
#include <signal.h>
+ #include <errno.h>
+ #include <stdio.h>
***************
-*** 280,285 ****
---- 281,295 ----
- /* Non-zero means to save keys that we dispatch on in a kbd macro. */
- static int defining_kbd_macro = 0;
-
-+ /* XXX this prevents to got editing mode from tcsh */
-+ static void wait_foreground(void)
-+ {
-+ struct winsize w;
-+ int tty = fileno (rl_instream);
+*** 347,352 ****
+--- 348,359 ----
+ int tty;
+ TIOTYPE *tiop;
+ {
++ /* XXX this prevents to got editing mode from tcsh. Ache */
++ struct winsize w;
+
-+ if (ioctl (tty, TIOCGWINSZ, &w) == 0)
-+ (void) ioctl (tty, TIOCSWINSZ, &w);
-+ }
-
- /* **************************************************************** */
- /* */
-***************
-*** 1153,1158 ****
---- 1163,1169 ----
- #endif /* POSIX */
- int tty = fileno (rl_instream);
-
-+ wait_foreground (); /* XXX this prevents to got editing mode from tcsh */
- #if defined (_POSIX_VERSION)
- if (tcgetattr (tty, &ttybuff) != -1)
- #else
-***************
-*** 2307,2312 ****
---- 2318,2324 ----
- # endif /* HAVE_BSD_SIGNALS */
- #endif /* POSIX */
-
-+ wait_foreground (); /* XXX this prevents to got editing mode from tcsh */
- #if defined (_POSIX_VERSION)
- tcgetattr (tty, &tio);
- #else
++ if (ioctl (tty, TIOCGWINSZ, &w) == 0)
++ (void) ioctl (tty, TIOCSWINSZ, &w);
++
+ while (GETATTR (tty, tiop) < 0)
+ {
+ if (errno != EINTR)