Skip to main content

Module shell

Module shell 

Source
Expand description

“Drop TUI -> run shell command -> restore TUI” helper. Used by !cmd at runtime AND by lesskey’s !shell command bindings (Task 3).

Functions§

run_shell_command
Run a shell command with the user’s $SHELL (falling back to /bin/sh). Tears down and rebuilds the terminal around the command.