summaryrefslogtreecommitdiff
path: root/www/lynx
diff options
context:
space:
mode:
authorblymn <blymn@pkgsrc.org>2002-08-20 13:41:33 +0000
committerblymn <blymn@pkgsrc.org>2002-08-20 13:41:33 +0000
commit15822bdbce97093afeb86e581508487b48f16396 (patch)
tree400d0e2431e924bdb692a83cf5cd45ecad80d426 /www/lynx
parentcff6112030668f620725e13f60765fea76ec36f4 (diff)
downloadpkgsrc-15822bdbce97093afeb86e581508487b48f16396.tar.gz
This patch fixes the problem with lynx not resetting the tty settings
on exit on 1.5.3 machines. This closes PR 15621.
Diffstat (limited to 'www/lynx')
-rw-r--r--www/lynx/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/www/lynx/patches/patch-ab b/www/lynx/patches/patch-ab
new file mode 100644
index 00000000000..587b6005028
--- /dev/null
+++ b/www/lynx/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.3 2002/08/20 13:41:33 blymn Exp $
+
+--- src/LYCurses.c.orig Tue Aug 20 22:33:51 2002
++++ src/LYCurses.c
+@@ -548,9 +548,7 @@ PUBLIC void curses_style ARGS2(
+ }
+ #endif /* USE_COLOR_STYLE */
+
+-#ifndef USE_SLANG
+ PRIVATE BOOL lynx_called_initscr = FALSE;
+-#endif
+
+ #if HAVE_USE_DEFAULT_COLORS && USE_DEFAULT_COLORS
+ /*
+@@ -1250,7 +1248,7 @@ PUBLIC void stop_curses NOARGS
+ lynx_nl2crlf(TRUE);
+ lynx_enable_mouse (0);
+ #if (!defined(WIN_EX) || defined(__CYGWIN__)) /* @@@ */
+- if(LYscreen) {
++ if(LYscreen || lynx_called_initscr) {
+ endwin(); /* stop curses */
+ LYDELSCR();
+ }