nuttx-apps/system/stty
fangpeina be038ce406 system: Add stty utility for terminal control
This commit adds a system 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-08-14 07:51:00 -03:00
..
CMakeLists.txt system: Add stty utility for terminal control 2026-08-14 07:51:00 -03:00
Kconfig system: Add stty utility for terminal control 2026-08-14 07:51:00 -03:00
Make.defs system: Add stty utility for terminal control 2026-08-14 07:51:00 -03:00
Makefile system: Add stty utility for terminal control 2026-08-14 07:51:00 -03:00
stty_main.c system: Add stty utility for terminal control 2026-08-14 07:51:00 -03:00