crossterm-rs / crossterm

Cross platform terminal library rust
MIT License
3.22k stars 275 forks source link

Clearing the terminal shows the cursor again if hidden #605

Open tobiasvl opened 3 years ago

tobiasvl commented 3 years ago

Describe the bug If the cursor is hidden when clearing the terminal, it's shown again.

To Reproduce Steps to reproduce the behavior:

  1. execute!(stdout, Hide);
  2. execute!(stdout, Clear(ClearType::All));
  3. See the cursor

Expected behavior I wouldn't expect clearing the terminal to show the hidden cursor.

OS Linux Subsystem for Windows (Ubuntu)

Terminal/Console Linux Subsystem for Windows terminal

willothy commented 1 year ago

This is occurring for me as well (version 0.26.0 and WSL Tumbleweed).