mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-12 07:27:57 +00:00
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. :-)
This commit is contained in:
parent
67f198adf4
commit
22a7b49cc4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=3639
28
ftp/ncftp2/files/patch-ab
Normal file
28
ftp/ncftp2/files/patch-ab
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user