crossterm-rs / crossterm

Cross platform terminal library rust
MIT License
3.29k stars 280 forks source link

Windows terminal crash when clearing #818

Open maxomatic458 opened 1 year ago

maxomatic458 commented 1 year ago

Describe the bug clearing the whole screen in windows terminal crashes the program

To Reproduce Steps to reproduce the behavior:

  1. have windows terminal as default app for commandline apps (can be set in the windows terminal settings)
  2. open a crossterm app (by either double click or right click open) that runs the following:
    stdout()    
        .execute(Clear(ClearType::All)).unwrap();
  3. the application will crash (if opened with an already existing windows terminal it does not crash) (it doesnt panic, it just crashes) Expected behavior it does not crash

OS Windows 10 22H2 19045.3324

Terminal/Console windows terminal