// // clear to end of line // VOID TextClearToEndOfLine() { if(DbcsLangId) TextGrClearToEndOfLine(); else TextTmClearToEndOfLine(); }
VOID TextClearToEndOfLine( VOID ) /*++ Routine Description: Clears from the current cursor position to the end of the line by writing blanks with the current video attribute. Arguments: None Returns: Nothing --*/ { if(DbcsLangId) { TextGrClearToEndOfLine(); } else { TextTmClearToEndOfLine(); } }
VOID TextTmClearToEndOfDisplay( VOID ) /*++ Routine Description: Clears from the current cursor position to the end of the video display by writing blanks with the current video attribute. The cursor position is not changed. Arguments: None Returns: Nothing --*/ { USHORT x,y; PUSHORT p; // // Clear current line // TextTmClearToEndOfLine(); // // Clear the remaining lines // p = (PUSHORT)((PUCHAR)VIDEO_BUFFER_VA + ((TextRow+1)*VIDEO_BYTES_PER_ROW)); for(y=TextRow+1; y<VIDEO_ROWS; y++) { for(x=0; x<VIDEO_COLUMNS; x++) { *p++ =(TextCurrentAttribute << 8) + ' '; } } }