Use current attributes when erasing.

This commit is contained in:
Michael Brown
2006-12-19 01:17:10 +00:00
parent cdfe61662b
commit c1bac56f85
3 changed files with 16 additions and 4 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ int wclrtobot ( WINDOW *win ) {
_store_curs_pos( win, &pos );
do {
_wputch( win, (unsigned)' ', WRAP );
_wputc( win, ' ', WRAP );
} while ( win->curs_y + win->curs_x );
_restore_curs_pos( win, &pos );
@@ -37,7 +37,7 @@ int wclrtoeol ( WINDOW *win ) {
_store_curs_pos( win, &pos );
while ( ( win->curs_y - pos.y ) == 0 ) {
_wputch( win, (unsigned)' ', WRAP );
_wputc( win, ' ', WRAP );
}
_restore_curs_pos( win, &pos );
@@ -51,7 +51,7 @@ int wclrtoeol ( WINDOW *win ) {
* @ret rc return status code
*/
int wdelch ( WINDOW *win ) {
_wputch( win, (unsigned)' ', NOWRAP );
_wputc( win, ' ', NOWRAP );
_wcursback( win );
return OK;