crossterm
crossterm copied to clipboard
Cross platform terminal library rust
I have an old project where I used to insert ansi codes into `println!()` like this: ```rust // ANSI colors for Linux terminal pub const YELLOW: &str = "\x1b[33m"; pub...
**Describe the bug** Inconsistent key event of "shifted" characters between Windows and Linux **To Reproduce** Steps to reproduce the behavior: 1. Run the official example of crossterm key event: https://docs.rs/crossterm/latest/crossterm/event/index.html...
The `size` argument to `FileDesc::read()` is not checked against the length of the buffer, so `libc::read()` could end up writing past the buffer if we passed a size that's too...
**Describe the bug** This issue was first reported in https://github.com/helix-editor/helix/issues/7129 including a reprocutions case. I did some digging there (https://github.com/helix-editor/helix/issues/7129#issuecomment-1717771690) AltGr handling seems a mess on windows but I do...
**Describe the bug** A [Ratatui](https://github.com/ratatui-org/ratatui) user (@nx10) using crossterm as a backend cut us an issue (https://github.com/ratatui-org/ratatui/issues/475) about macOS terminal rendering RGB colors incorrectly (with blinking). This seems to be...
**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...
**Describe the bug** if i have raw terminal enabled until program is shutdown instead of everytime i read a single char and i paste 1025 characters my program seems to...
I noticed that https://github.com/crossterm-rs/crossterm/pull/790 is merged, but some terminals (e.g. VSCode, [Hyper canary](https://github.com/vercel/hyper/issues/7375#issuecomment-1668365392) which are [`node-pty`](https://github.com/microsoft/node-pty) based) do not implement the `ioctl` system call to get the terminal's width and...
Adds a command that allows for ringing the terminal bell by printing the bell character. Technically it's not an ansi code, so it felt slightly strange to put it under...
**Describe the bug** The set size of the terminal is not respected when printing a string in a loop. **To Reproduce** Using crossterm version 0.26.1, run the below code: ```...