crossterm-rs / crossterm

Cross platform terminal library rust
MIT License
3.28k stars 281 forks source link

Support for detection function for synchronized output #934

Open sohnryang opened 1 month ago

sohnryang commented 1 month ago

Is your feature request related to a problem? Please describe. Support for synchronized output using BeginSynchronizedUpdate and EndSynchronizedUpdate was added in #756. However, currently there is no means in the API to check for synchronized output support in the terminal.

Describe the solution you'd like A function that checks terminal support for synchronized output as bool would be sufficient. Maybe something similar to crossterm::terminal::supports_keyboard_enhancement?

Describe alternatives you've considered if any I have considered directly invoking control functions for support, but it seems that it is not possible (or, at least hard) to do such operation using crossterm.

Additional context None