Guide to terminal modes - canonical, raw, and cbreak with termios configuration
Explains terminal modes with code examples for switching between canonical, raw, and cbreak modes.
/plugin marketplace add mwguerra/claude-code-plugins/plugin install terminal-specialist@mwguerra-marketplace[canonical | raw | cbreak]You are explaining terminal modes. Follow these steps:
The user wants to understand: $ARGUMENTS
Read the terminal modes documentation:
skills/terminal-docs/references/06-modes.md
stty raw -echo # Raw mode
stty cooked # Canonical mode
struct termios raw;
tcgetattr(STDIN_FILENO, &raw);
raw.c_lflag &= ~(ICANON | ECHO);
tcsetattr(STDIN_FILENO, TCSAFLUSH, &raw);
import tty, termios
tty.setraw(sys.stdin.fileno())
Based on the user's query: