8

I'd like to create a small terminal utility requiring a bit of very simple graphics. Therefore I'd like to use ncurses.

Now what I'm wondering is: will a ncurses program or python script that uses ncurses be visible over ssh? I'd also like the colors to be visible as well.

Dean
  • 384
  • 1
  • 4
  • 11

1 Answers1

8

It works (no surprise), but if you are running a command via ssh (rather than the default shell), you will have to use the -t option to allocate a terminal.

The ssh manual page says

-t
Force pseudo-terminal allocation. This can be used to execute arbitrary screen-based programs on a remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t options force tty allocation, even if ssh has no local tty.

Thomas Dickey
  • 75,040
  • 9
  • 171
  • 268