liuzhe02 / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

how to open and interact with shellinabox in a custom html page #283

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hello,
I would need to open a session shellinabox in an html page customized.
the terminal shellinabox will be loaded into a div inside of my page and next 
to this div I have buttons that I will use to send strings of commands to the 
cursor of the terminal shellinabox

here an example of what i want to do:
http://www.atlantidee.it/download/esempio_shellinabox.jpg

thanks for your help

Original issue reported on code.google.com by FSimo...@gmail.com on 9 Apr 2015 at 8:37

GoogleCodeExporter commented 8 years ago
Hello, 

if you use iframe to embed shellinabox on your page, you can check this 
example: 
https://github.com/shellinabox/shellinabox/blob/master/misc/embedded.html. For 
this to work you need the updated version of shellinabox from Github.

In your case you could call sendKeys() method to pass commands to shellinabox. 
I think that should work OK...

Original comment by luka.kra...@gmail.com on 27 Jun 2015 at 11:29

GoogleCodeExporter commented 8 years ago
Thank you,
it is what i need and it works!

Now i need to send a ctrl+x and other shortcuts to the shell always by pressing 
a button, but i don't know how can i do this

Original comment by FSimo...@gmail.com on 17 Jul 2015 at 12:45