开源项目 终端分享工具 ttyd 1.2.0 发布,添加了中文输入支持

tsl0922 · November 14, 2016 · Last by flowerwrong replied at November 14, 2016 · 4558 hits

ttyd 1.2.0 发布了。

这个版本主要的改进是网页终端模拟器添加了对 CJK (Chinese, Japanese, Korean) 和 IME 的支持,也就是说可以输入中文了。另外,ttyd 也可以在 FreeBSD 下使用了。

ChangeLog

1.2.0

  • Fixed compile error on FreeBSD
  • Re-implemented the base64 function without openssl
  • --client-option option: allows setting terminal preference on the server side
  • Moved the terminal emulator from hterm to xterm.js for CJK and IME support
  • Show websocket connection error with overlay

1.1.0

  • --once option: accept only one client and exit on disconnection
  • --readonly option: do not allow clients to write to the TTY
  • --check-origin option: do not allow websocket connection from different origin
  • HTTP Server header changed to ttyd, eg: ttyd/1.1.0 (libwebsockets/2.0.2)
  • Added check for lws_config.h, some version of libwebsockets may not have this header file
  • libwebsockets : handle fragmented messages, this allows large input on the web
  • OpenWrt Makefile: changed the openssl dependency to libopenssl

ttyd 是一个 C 语言编写的命令行程序,可以把任意命令行程序分享到网页上操作,可以看做是个网页版的远程终端,支持 Linux、macOS 系统,还可以运行在 OpenWrt 之类的嵌入式系统上。

功能特色:

  • C 语言编写,在速度和内存占用上相比其它实现有一些优势
  • 网页和服务器端使用 websocket 通信(基于 libwebsockets
  • 前端使用 chromium hterm 实现终端模拟,功能完备(已换为对中文输入更友好的 Xterm.js
  • 客户端和服务器端支持 SSL 加密通信(基于 OpenSSL
  • 支持配置用户名密码认证(Basic Auth)
  • 可以执行任意命令行程序,不只是 bash 之类的 shell
  • 跨平台支持,可以在 Linux、macOS、OpenWrt 下运行

运行效果:

screenshot

更新历史:

You need to Sign in before reply, if you don't have an account, please Sign up first.