nuttx-apps/system/stty
fangpeina a06620345c system: Add stty utility for terminal control
This commit adds a systen utily 'stty' to NuttX, providing a standard
Unix-like interface for configuring terminal (TTY) device settings.
The command allows runtime configuration of termios attributes for
serial ports and other character devices.

Usage examples:

  # Set raw mode on ttyS0 (for binary communication)
  nsh> stty -F /dev/ttyS0 raw -echo

  # Set console mode for interactive terminal
  nsh> stty -F /dev/ttyS0 cooked

  # Display current settings
  nsh> stty -F /dev/ttyS0

  # Configure stdin (if it's a TTY)
  nsh> stty echo icanon

  # Set baudrate (if driver support)
  nsh> stty -F /dev/ttyS1 speed 115200

Signed-off-by: fangpeina <fangpeina@xiaomi.com>
2026-04-20 15:20:24 +08:00
..
CMakeLists.txt system: Add stty utility for terminal control 2026-04-20 15:20:24 +08:00
Kconfig system: Add stty utility for terminal control 2026-04-20 15:20:24 +08:00
Make.defs system: Add stty utility for terminal control 2026-04-20 15:20:24 +08:00
Makefile system: Add stty utility for terminal control 2026-04-20 15:20:24 +08:00
stty_main.c system: Add stty utility for terminal control 2026-04-20 15:20:24 +08:00