
回复
笔者去年就完成了ttyd这个的开源项目的OpenHarmony移植,但是去年只提供了二进制文件,最近才有时间整理出开源成果,老规矩,下面给出开源地址:
https://gitee.com/OpenHarmony_rk_equipment_transplantation/ttyd_openharmony
git clone https://gitee.com/OpenHarmony_rk_equipment_transplantation/ttyd_openharmony.git
cd ttyd_openharmony/lycium/
# 设置oh交叉编译环境
export OHOS_SDK=/root/OpenHarmony/cix_myself_5.0.0/prebuilts/ohos-sdk/linux/12
# 编译依赖库
./build.sh openssl_1_0_2u
# 编译ttyd
./build.sh ttyd
编译好的文件在ttyd_openharmony/lycium/usr/ttyd,将准备好的文件推送到开发板,执行./ttyd -p 7681 --writable -t disableResizeOverlay=true -w
然后使用web组件访问localhost:7681
地址