@@ -143,7 +143,7 @@ impl Term {
143
143
term
144
144
}
145
145
146
- /// Return a new unbuffered terminal
146
+ /// Return a new unbuffered terminal.
147
147
#[ inline]
148
148
pub fn stdout ( ) -> Term {
149
149
Term :: with_inner ( TermInner {
@@ -152,7 +152,7 @@ impl Term {
152
152
} )
153
153
}
154
154
155
- /// Return a new unbuffered terminal to stderr
155
+ /// Return a new unbuffered terminal to stderr.
156
156
#[ inline]
157
157
pub fn stderr ( ) -> Term {
158
158
Term :: with_inner ( TermInner {
@@ -161,23 +161,23 @@ impl Term {
161
161
} )
162
162
}
163
163
164
- /// Return a new buffered terminal
164
+ /// Return a new buffered terminal.
165
165
pub fn buffered_stdout ( ) -> Term {
166
166
Term :: with_inner ( TermInner {
167
167
target : TermTarget :: Stdout ,
168
168
buffer : Some ( Mutex :: new ( vec ! [ ] ) ) ,
169
169
} )
170
170
}
171
171
172
- /// Return a new buffered terminal to stderr
172
+ /// Return a new buffered terminal to stderr.
173
173
pub fn buffered_stderr ( ) -> Term {
174
174
Term :: with_inner ( TermInner {
175
175
target : TermTarget :: Stderr ,
176
176
buffer : Some ( Mutex :: new ( vec ! [ ] ) ) ,
177
177
} )
178
178
}
179
179
180
- /// Return a terminal for the given Read/Write pair styled- like Stderr .
180
+ /// Return a terminal for the given Read/Write pair styled like stderr .
181
181
#[ cfg( unix) ]
182
182
pub fn read_write_pair < R , W > ( read : R , write : W ) -> Term
183
183
where
@@ -204,7 +204,7 @@ impl Term {
204
204
} )
205
205
}
206
206
207
- /// Return the style for this terminal
207
+ /// Return the style for this terminal.
208
208
#[ inline]
209
209
pub fn style ( & self ) -> Style {
210
210
match self . inner . target {
@@ -215,7 +215,7 @@ impl Term {
215
215
}
216
216
}
217
217
218
- /// Return the target of this terminal
218
+ /// Return the target of this terminal.
219
219
#[ inline]
220
220
pub fn target ( & self ) -> TermTarget {
221
221
self . inner . target . clone ( )
@@ -402,7 +402,7 @@ impl Term {
402
402
move_cursor_to ( self , x, y)
403
403
}
404
404
405
- /// Move the cursor up `n` lines
405
+ /// Move the cursor up `n` lines.
406
406
#[ inline]
407
407
pub fn move_cursor_up ( & self , n : usize ) -> io:: Result < ( ) > {
408
408
move_cursor_up ( self , n)
@@ -414,13 +414,13 @@ impl Term {
414
414
move_cursor_down ( self , n)
415
415
}
416
416
417
- /// Move the cursor `n` characters to the left
417
+ /// Move the cursor `n` characters to the left.
418
418
#[ inline]
419
419
pub fn move_cursor_left ( & self , n : usize ) -> io:: Result < ( ) > {
420
420
move_cursor_left ( self , n)
421
421
}
422
422
423
- /// Move the cursor `n` characters to the right
423
+ /// Move the cursor `n` characters to the right.
424
424
#[ inline]
425
425
pub fn move_cursor_right ( & self , n : usize ) -> io:: Result < ( ) > {
426
426
move_cursor_right ( self , n)
@@ -466,21 +466,21 @@ impl Term {
466
466
clear_chars ( self , n)
467
467
}
468
468
469
- /// Set the terminal title
469
+ /// Set the terminal title.
470
470
pub fn set_title < T : Display > ( & self , title : T ) {
471
471
if !self . is_tty {
472
472
return ;
473
473
}
474
474
set_title ( title) ;
475
475
}
476
476
477
- /// Make the cursor visible again
477
+ /// Make the cursor visible again.
478
478
#[ inline]
479
479
pub fn show_cursor ( & self ) -> io:: Result < ( ) > {
480
480
show_cursor ( self )
481
481
}
482
482
483
- /// Hide the cursor
483
+ /// Hide the cursor.
484
484
#[ inline]
485
485
pub fn hide_cursor ( & self ) -> io:: Result < ( ) > {
486
486
hide_cursor ( self )
0 commit comments