butlerx / wetty

Terminal in browser over http/https. (Ajaxterm/Anyterm alternative, but much better)
https://butlerx.github.io/wetty
MIT License
4.36k stars 673 forks source link

How do I set term environment variable? #94

Closed bluefangs closed 7 years ago

bluefangs commented 7 years ago

I'm looking to use my TERM as vt100. If I need to ssh into my machine manually, I had to first export TERM=vt100 and then proceed with the SSH. How do I do this when using wetty? Right now, If I try to ssh into my machine using wetty without the above, I get denied with the below:

X11 forwarding request failed on channel 0

I've tried to export TERM=vt100 and then start up the wetty app, but it hasn't resolved my problem.

Thanks.

bluefangs commented 7 years ago

Nevermind, I figured this one.

term = pty.spawn('ssh', [sshuser + sshhost, '-p', sshport, '-o', 'PreferredAuthentications=' + sshauth], {
        // name: 'xterm-256color',
        name: 'vt100',
        cols: 80,
        rows: 30
    });