终端/主机内部浏览器 [英] Terminal/Console Inside Browser

查看:232
本文介绍了终端/主机内部浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从来没有尝试过修改的网页浏览器,但它可以嵌入一个程序作为一个DOM元素?

I have never tried modifying a web browser but is it possible to embed a program as a DOM element?

最简单的例子是采取愚蠢的计算器程序开始>应用程序,只需将其放置在浏览器的左上角。我不需要它的浏览器进行沟通,只是坐在那里,是互动的。

The simplest example would be to take that stupid Calculator program in Start>Applications and just place it in the top left hand corner of the browser. I don't need it to communicate with the browser, just sit there and be interactive.

我真正需要的是通过终端(即腻子或Linux命令行)ssh访问,但我不希望使用Anyterm或Ajaxterm这是令人难以置信的慢。同样地,我不想强​​迫用户打开一个新的终端。虽然在功能上却是相同的,它不看,或有同样的感觉。

What I really need is ssh access via a terminal (ie. Putty or Linux command line) but I don't want to use Anyterm or Ajaxterm which is incredibly slow. Similarly I don't want to force the user to open a new terminal. Although functionally it would be the same, it doesn't look or feel the same.

我敢肯定有办法做到这一点,我只是不知道从哪里开始寻找。

I'm sure there's a way to do this, I just have no idea where to start looking.

干杯

推荐答案

在原则上,这是可能的。你会使用一些计划,将一些浏览器插件来执行(或其他特定的浏览器的机制) - 或做完全的JavaScript

In principle, it is possible. You would use some program which will be executed by some browser plugin (or other browser-specific mechanism) - or do this fully in JavaScript.

可能的机制是的闪存(这将是由浏览器的Flash插件运行),或 Java小程序(它通常由Java插件来执行,但有些浏览器(如Konqueror中)有自己的嵌入Java小程序)的方式。

Possible mechanisms would be Flash (which will be executed by the browser's Flash plugin), or a Java applet (which will normally be executed by the Java plugin, though some browsers (like Konqueror) have their own way of embedding Java applets).

对于终端客户端SSH访问,在Java中完成的,几乎是现成的解决方案将是 JCTerm 连同 JSch (均来自JCraft)。

For client SSH access with a terminal, done in Java, an almost ready solution would be JCTerm, together with JSch (both from JCraft).

这篇关于终端/主机内部浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆