HomeTutorials › Interactive Terminal
Interactive Terminal

Running Vim & Htop

#042 0:14 Part of the Rysh video series

vim, htop, less, nano -- full-screen programs just work, right inside a Rysh pane.

Running Vim & Htop — 0:14 walkthrough

What you'll see

  1. Launch rysh; a pane is a full PTY-backed shell.
  2. Open vim hello.go -- the alternate screen triggers automatic raw mode.
  3. Insert text, then :wq to save and quit.
  4. Run htop; the vt10x emulator renders the live process view.
  5. Press q to quit back to the shell.

Commands shown

rysh
vim hello.go
i
package main
func main() {}
:wq
htop
q

Keys used

EnterEscape

Transcript

0:00vim, htop, less, nano -- full-screen programs just work, right inside a Rysh pane.

0:03Start rysh -- a pane is a full PTY-backed shell.

0:07Open a file in vim. The moment vim switches to its alternate screen, Rysh detects it and enters raw mode automatically.

0:14Now every keystroke flows straight to the terminal emulator. Insert mode, normal mode -- vim behaves exactly as it should.

0:24Write and quit with colon-w-q. Back to the shell, no surprises.

0:30Run htop -- another alternate-screen program. Rysh's vt10x emulator renders the live process view inside the pane.

0:40Press q to quit htop and return to your shell prompt.

0:47Interactive terminal apps, no configuration, no caveats.

Key takeaway
Interactive, alternate-screen programs run seamlessly in a pane with no configuration.