Results 173 comments of Bedis Nbiba

I don't have windows currently to test, hopefully someone else picks this up if its still interesting.

I can reproduce with gnome terminal, but not with alacrity. I think this subtraction https://github.com/crossterm-rs/crossterm/blob/master/src/event/sys/unix/parse.rs#L355 is not mentioned by the sgr extension. wezterm for example doesn't appear to do it...

This issue has some insight https://gitlab.gnome.org/GNOME/vte/-/issues/71 So from what I can tell 0 is a valid number, but its interpretation its not clear, it can be either scroll 1 or...

To summarize the issue: ```rust let x = format!("{}", hello".red()); ``` This can easily work with ansi since the ansi sequence is written to x with the original str. In...

https://blog.robertelder.org/detect-keyup-event-linux-terminal/ Detecting a key release in linux usually require root (unless you rely on x server) , if the user is in the input group he can read it with...

Linux already supported mouse up/down events, its the keys support that is missing. This commit https://github.com/crossterm-rs/crossterm/commit/60e51be726f00b8df9c79b72a55d6b9f2a40a507 fixes this by using the kitty protocol. (but you need a supported terminal)

It is is possible in master(not released) yet using the kitty protocol. See https://github.com/crossterm-rs/crossterm/blob/master/src/event.rs#L357 it also contains the list of supported terminals. To use it just add: ```rs execute!(stdout, PushKeyboardEnhancementFlags(KeyboardEnhancementFlags::REPORT_EVENT_TYPES))?;...

https://github.com/crossterm-rs/crossterm/issues/397 https://github.com/crossterm-rs/crossterm/pull/407 https://github.com/tokio-rs/mio/issues/1377

I forgot to like this issue https://github.com/crossterm-rs/crossterm/issues/396 It seems to be the same problem, the gist of it you're having 2 process trying to read from stdin at the same...

I created a fix here https://github.com/crossterm-rs/crossterm/compare/master...sigmaSd:cursor_pos_new?expand=1 and here https://github.com/crossterm-rs/crossterm-winapi/compare/master...sigmaSd:cursor_pos_new?expand=1 If someone can validate my assumptions and test it on linux and windows I can pr it couple of points: -...