IonicaBizau / web-term

:tv: A fullscreen terminal in your browser.
MIT License
169 stars 21 forks source link

"clear" and "CTRL + L" not working on some browsers #5

Closed tmdroid closed 9 years ago

tmdroid commented 9 years ago

I'm having a problem with the clear command. I get this error:

danny@TabletPC:~$ clear 
'Browser Term': unknown terminal type.

And CTRL + L works as a normal Enter key.

I'm using Chromium 37.0.2062.120 on elementaryOS Luna.

IonicaBizau commented 9 years ago

@csanonymus Check if this was fixed in the latest release (npm i -g web-term@latest).

tmdroid commented 9 years ago

I still have the same issue

ScreenShot

IonicaBizau commented 9 years ago

@csanonymus We reproduced this issue in an internal @jillix application. The I applied is to export the TERM environment variable.

Run the following commands:

echo "export TERM=xterm-256color" >> ~/.bashrc
source ~/.bashrc

Then the web-term experience will be smoother.

I will make sure I add this info in the web-term docs in the next release.

IonicaBizau commented 9 years ago

Actually, just run export TERM=xterm-256color in the terminal session. I will try to force setting this environment variable in web-term.

However, I opened this issue: https://github.com/chjj/pty.js/issues/120 I'd :+1: for fixing it in the core library.

IonicaBizau commented 9 years ago

This happened because of the custom name. I addressed this :bug: in https://github.com/IonicaBizau/web-term/commit/384c2a7f8cca2e8187a1bae55577c65950a92b94.

@csanonymus Would be glad if you test the improvements branch and give feedback! :sparkle:

tmdroid commented 9 years ago

Yes, the branch solves the bug. Great job!