rabchev / web-terminal

Web-Terminal is a terminal server that provides remote CLI via standard web browser and HTTP protocol.
MIT License
443 stars 138 forks source link

Running vim. #2

Open trusktr opened 11 years ago

trusktr commented 11 years ago

Could you provide an example of how to set this up so the /bin/login command is the first thing you see for logging in, and so that when running vim with syntax highlighting we don't see escape codes everywhere?

Thanks!

rabchev commented 11 years ago

These are two separate issues.

The first one will require some investigation on how to handle. The problem is that every command is executed in a new child process, so just executing login won't work because the next command will be running in a new process. I will come up with some solution but I will need some time, probably a couple of weeks. Also be aware that this will work only on POSIX platforms.

About the second problem: I haven't had tested vim till now and apparently there are some escape sequences that are not handled correctly if handled at all. So this is a bug and it will require some additional time to fix.