Comments (17)
暂时没有 给zmodem提了issues 作者好像要我提供单元测试 我不会ts 你遇到的问题是啥 加个qq交流一下?
from webterminal.
xterm.js v4 不支持 zmodem 插件,然后我就找网上 3.14.5 版本使用 zmodem 插件的 demo
我这样写的
<script src="https://unpkg.com/[email protected]/dist/xterm.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/attach/attach.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/webLinks/webLinks.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/fit/fit.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/fullscreen/fullscreen.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/zmodem/zmodem.js"></script>
<script src="https://unpkg.com/[email protected]/dist/addons/search/search.js"></script>
<script>
Terminal.applyAddon(attach);
Terminal.applyAddon(fit);
Terminal.applyAddon(fullscreen);
Terminal.applyAddon(search);
Terminal.applyAddon(webLinks);
Terminal.applyAddon(zmodem);
....
</script>
结果浏览器提示
zmodem.ts:90 Uncaught TypeError: Cannot read property 'Browser' of undefined
at Object.apply (zmodem.ts:90)
at Function.Terminal.applyAddon (Terminal.ts:181)
at ws_connect ((index):216)
at HTMLButtonElement.onclick ((index):94)
不知道什么原因呢?!
from webterminal.
xtermjs4 移除了这个插件 但是这个插件有个单独的仓库 zmodemjs 我看别人用xtermjs4+上这个插件也是可以的 但是我的不知道为什么不行 issuse#10
from webterminal.
我还是先试试 v3 版本的 zmodem 插件,v3 版本的 xterm.js 就够用了,没必要非用 v4 的,把 v3 的插件搞定了如果有时间可以再来折腾下 v4 的
from webterminal.
v3 版本的我搞定了
from webterminal.
你这个后端是python还是go的 给个地址我学习一下
from webterminal.
https://github.com/leffss/gowebssh ,python 版本的后面来实现
from webterminal.
https://github.com/leffss/django-webssh ,v4 版本也实现了
from webterminal.
https://github.com/leffss/django-webssh ,v4 版本也实现了
兄弟 6666
from webterminal.
我遇到了跟您一模一样的问题!
from webterminal.
哈哈,我解决了。
window.zsentry = new Zmodem.Sentry({
to_terminal: function(octets){},
sender: function(octets){},
sender 您没有使用websocket 去发送到终端
from webterminal.
@leffss 请问你是怎么解决这个问题的?
from webterminal.
@leffss 请问你是怎么解决这个问题的?
自行参考:https://github.com/leffss/gowebssh
from webterminal.
@leffss 请问你是怎么解决这个问题的?
我就是使用你的repo里的方案,还是有这种问题,想确认一下这个是后端问题还是前端问题呢?
from webterminal.
方案是xterm v3.14.5的方案,可以正常监听rz,sz,但输入命令之后就遇到报错
from webterminal.
方案是xterm v3.14.5的方案,可以正常监听rz,sz,但输入命令之后就遇到报错
https://github.com/leffss/gowebssh 中目前使用 xterm v4.8,sz和rz均可正常使用;不保证xterm v3.14.5正确性
from webterminal.
@leffss 十分感谢,我先看下v4.8的实现
from webterminal.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webterminal.