diff options
author | ache <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-07-30 17:21:39 +0000 |
commit | d6cf2089bc5887f137a83ede9767e5154e3b8186 (patch) | |
tree | 2eda095cc49ccd84c07771c2714cb72c8d3a931c /lib/libncurses/lib_delch.c | |
parent | 2d46d6b6b7899598c975cea266468603c9a442ba (diff) | |
download | FreeBSD-src-d6cf2089bc5887f137a83ede9767e5154e3b8186.zip FreeBSD-src-d6cf2089bc5887f137a83ede9767e5154e3b8186.tar.gz |
Fix logical background handling by merging it from ncurses 4.1
No new user-visible functions added
Diffstat (limited to 'lib/libncurses/lib_delch.c')
-rw-r--r-- | lib/libncurses/lib_delch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libncurses/lib_delch.c b/lib/libncurses/lib_delch.c index bc802ca..0a0fd0a 100644 --- a/lib/libncurses/lib_delch.c +++ b/lib/libncurses/lib_delch.c @@ -17,6 +17,7 @@ int wdelch(WINDOW *win) { chtype *temp1, *temp2; chtype *end; +chtype blank = _nc_background(win); T(("wdelch(%x) called", win)); @@ -27,7 +28,7 @@ chtype *end; while (temp1 < end) *temp1++ = *temp2++; - *temp1 = ' ' | win->_attrs; + *temp1 = blank; win->_lastchar[win->_cury] = win->_maxx; |