# Research Pattern Identify the target host and VT first. Run session probes in that target session, or ask the user to run them there: ```sh tty printf '%s\n' "$TERM" ``` The agent's pty or missing tty does not rule out a separate target VT. Inspect capabilities with `infocmp -1 linux`; terminfo lookup is not target detection. Run device probes below only on the target host. Man pages: ```sh man console_codes | col -b man setterm | col -b man vconsole.conf | col -b man loadkeys | col -b man keymaps | col -b man dumpkeys | col -b man showkey | col -b man setfont | col -b man reset | col -b man terminfo | col -b man vcs | col -b man ioctl_console | col -b ``` Useful probes: ```sh infocmp -1 linux | grep -E '^(\s*(clear|rs[123]|is[123]|oc|op|initc|sgr0)=)' dumpkeys | head kbd_mode fgconsole 2>/dev/null ls -l /dev/tty[0-9]* /dev/vcs* /dev/vcsa* 2>/dev/null ``` If local docs are missing/stale, fetch current upstream docs: - - - - - - - - - - - Distro docs can explain policy/integration. Prefer upstream man pages for interfaces, distro wiki for packaging/persistence quirks.