summaryrefslogtreecommitdiff
path: root/ftp/ncftp2
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1996-08-18 15:12:39 +0000
committerPeter Wemm <peter@FreeBSD.org>1996-08-18 15:12:39 +0000
commit22a7b49cc42ea24e2c35825620cc22ffa11643c0 (patch)
treeaaff41efe7a1ce30aa5d66a3f16ddcf7ebf07c77 /ftp/ncftp2
parentStamp on another malloc library definition. This time, it's dead! (diff)
Work around what appears to be a ncurses bug. The command line at the
bottom of the screen can sometimes have stray characters left behind from the previous command. This seems to be because ncurses is ignoreing a ``wprintw(window, "%s", " ")'' when it's in the last column of a window. I dont know who is right, ncurses or ncftp. This workaround also makes the code a little cleaner as a side effect. :-)
Notes
Notes: svn path=/head/; revision=3639
Diffstat (limited to 'ftp/ncftp2')
-rw-r--r--ftp/ncftp2/files/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/ftp/ncftp2/files/patch-ab b/ftp/ncftp2/files/patch-ab
new file mode 100644
index 000000000000..97726f007458
--- /dev/null
+++ b/ftp/ncftp2/files/patch-ab
@@ -0,0 +1,28 @@
+#
+# This is to work around an apparent ncurses bug.. It's a slight optimisation
+# too, I think.
+#
+--- Win.c.dist Wed Dec 6 13:38:47 1995
++++ Win.c Sun Aug 18 23:08:11 1996
+@@ -1101,16 +1101,12 @@
+ Exit(kExitWinFail2);
+ }
+
++ werase(gPromptWin);
+ WAttr(gPromptWin, flags, 1);
+- if (addTail) {
+- mvwprintw(gPromptWin, 0,0, "%s%s", pr, kPromptTail);
+- WAttr(gPromptWin, flags, 0);
+- } else {
+- mvwprintw(gPromptWin, 0,0, "%s", pr);
+- WAttr(gPromptWin, flags, 0);
+- if (flags & kReverse)
+- wprintw(gPromptWin, " ");
+- }
++ mvwprintw(gPromptWin, 0,0, "%s", pr);
++ if (addTail)
++ wprintw(gPromptWin, "%s", kPromptTail);
++ WAttr(gPromptWin, flags, 0);
+ wnoutrefresh(gPromptWin);
+ werase(gInputWin);
+ touchwin(gInputWin);