File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -428,16 +428,15 @@ impl Term {
428
428
429
429
/// Clear the current line.
430
430
///
431
- /// This positions the cursor at the beginning of the current line.
431
+ /// Position the cursor at the beginning of the current line.
432
432
#[ inline]
433
433
pub fn clear_line ( & self ) -> io:: Result < ( ) > {
434
434
clear_line ( self )
435
435
}
436
436
437
437
/// Clear the last `n` lines before the current line.
438
438
///
439
- /// This positions the cursor at the beginning of the first line
440
- /// that was cleared.
439
+ /// Position the cursor at the beginning of the first line that was cleared.
441
440
pub fn clear_last_lines ( & self , n : usize ) -> io:: Result < ( ) > {
442
441
self . move_cursor_up ( n) ?;
443
442
for _ in 0 ..n {
@@ -449,18 +448,21 @@ impl Term {
449
448
}
450
449
451
450
/// Clear the entire screen.
451
+ ///
452
+ /// Move the cursor to the upper left corner of the screen.
452
453
#[ inline]
453
454
pub fn clear_screen ( & self ) -> io:: Result < ( ) > {
454
455
clear_screen ( self )
455
456
}
456
457
457
- /// Clear the entire screen.
458
+ /// Clear everything from the current cursor position to the end of the screen.
459
+ /// The cursor stays in its position.
458
460
#[ inline]
459
461
pub fn clear_to_end_of_screen ( & self ) -> io:: Result < ( ) > {
460
462
clear_to_end_of_screen ( self )
461
463
}
462
464
463
- /// Clear the last `n` chars of the current line.
465
+ /// Clear the last `n` characters of the current line.
464
466
#[ inline]
465
467
pub fn clear_chars ( & self , n : usize ) -> io:: Result < ( ) > {
466
468
clear_chars ( self , n)
You can’t perform that action at this time.
0 commit comments