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.


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

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.