Skip to content

Commit 2f7184f

Browse files
committed
Add docstring for Windows set_console_mode()
1 parent 3c7ba95 commit 2f7184f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/windows_term/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ pub(crate) fn is_a_color_terminal(out: &Term) -> bool {
7878
enable_ansi_on(out)
7979
}
8080

81+
/// Enables or disables the `mode` flag on the given `HANDLE` and yields the previous mode.
8182
fn set_console_mode(handle: HANDLE, mode: CONSOLE_MODE, enable: bool) -> Option<CONSOLE_MODE> {
8283
unsafe {
8384
let mut dw_mode = 0;

0 commit comments

Comments
 (0)