MatthieuLemoine / ssh2-client

A Promise based wrapper around ssh2 to exec commands or setup a live shell on a remote host.
6 stars 4 forks source link

Allow colors in remote ssh shell #3

Open MurzNN opened 3 years ago

MurzNN commented 3 years ago

At now when I launch the interactive shell via code like this:

sshClient
  .shell(uri, opts)
  .then(() => console.log('Session finished.'));

Basic command output are works well, but shell misses the colors. For example, if I run the htop command, it looks like this (left is shell via ssh2-client, right - via system's ssh command: image

Is it possible to allow color output in interactive ssh shell via Node.JS?

MurzNN commented 3 years ago

And here is Midnight Commander screenshot: image