# qTerminal **Repository Path**: laterlove/q-terminal ## Basic Information - **Project Name**: qTerminal - **Description**: 1、基于qt5.14.2开发的终端,支持ssh、telnet、串口、本地会话; 2、支持sftp、自动化执行多个命令、lua解析数据实时更新绘制曲线图、mmc块数量计算、tftp服务器 - **Primary Language**: C++ - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 2 - **Created**: 2024-09-05 - **Last Updated**: 2025-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 计划实现的功能 ## sftp---由QSSh改为libssh 已完成 还需要优化链接文件夹图标显示 ---已完成 ## ftp 1. 上述的文件管理功能支持跟随cd命令切换显示路径 2. 实时显示当前路径下的文件 3. 下载、上传文件,支持拖拽 4. 支持手动切换目录 ## telnet终端 已完成 ## 串口终端 已完成 ## 监控 - 支持监测CPU、io状态、网络带宽、内存使用情况、磁盘剩余状态 - 更进一步的功能支持曲线图、饼状图显示 ## 导入批量命令处理文件 - 自动化批量执行命令 已完成 ## 日志记录功能 已完成,但还需继续优化 ## 鼠标选择部分文字复制粘贴 已完成 ## 串口x/y/z modem功能 ## 支持tftp ## 支持选择tftp\ftp 批量导入文件导入到指定目录 ## 多级会话同时显示 已完成 ## 小工具 ### 添加mmc烧写块计算功能 ----已完成 ## 支持动态改变终端窗口大小 需要移植libssh,QSsh不支持此功能 ## winpty使用本地程序卡顿 如使用wsl,ubuntu,执行sudo cyclictest 命令, 执行一段时间后,出现大量数据解析慢并且UI卡死问题,待解决 ----已完成 ## 快捷命令发送 ## 解决本地会话cmd,ctrl+c不能终止当前输入的问题 能够终止当前进程的运行,不能终止当前输入 **[xterm](http://invisible-island.net/xterm/xterm.html)**. Most of the xterm control sequences documented at http://invisible-island.net/xterm/ctlseqs/ctlseqs.html are supported. Please [report as bugs](https://github.com/mintty/mintty/issues) any incompatibilities or unimplemented sequences that would be useful. Some sequences that were introduced by other terminals such as the [Linux console](http://www.kernel.org/doc/man-pages/online/pages/man4/console_codes.4.html), and that aren't available in xterm, are also supported. This page only lists control sequences that are specific to mintty. [Caret notation](http://en.wikipedia.org/wiki/Caret_notation) is used to show control characters. The full details of all supported control sequences are only available in the [source code](https://github.com/mintty/mintty/blob/master/src/termout.c). - 获取资源信息 ``` shell while true; do sleep 1;head -v -n 8 /proc/meminfo; head -v -n 2 /proc/stat /proc/version /proc/uptime /proc/loadavg /proc/sys/fs/file-nr /proc/sys/kernel/hostname; tail -v -n 32 /proc/net/dev;echo '==> /proc/df <==';df -l;echo '==> /proc/who <==';who;echo '==> /proc/end <==';echo '##Moba##'; done ``` ## 功能展示 - 新建会话 支持ssh、telnet、串口、本地会话 ![新建会话](image/newsession.png) - 计算MMC块数量 ![mmc块计算](image/mmc.png) - tftp 服务器 ![tftp](image/tftp.png) - 选择提前配置好的excel表格,点击开始后会按照表格顺序执行对应的命令,超时后会发送ctrl+c终止对应的命令。 ![命令测试](image/cmd.png) ![表格](image/excel.png) - 支持sftp的基本文件操作,上传下载、重命名、删除、创建等。 ![sftp](image/sftp.png) - lua脚本解析数据并绘制曲线 ![testlua](image/testlua.png) - DEC Special Graphics测试代码 - https://teratermproject.github.io/manual/5/en/about/emulations_dec_special.html ``` shell echo -e "_abcdefghijklmnopqrstuvwxyz\x7b\x7c\x7e\r\n\x1b(0_abcdefghijklmnopqrstuvwxyz\x7b\x7c\x7e\x0f\x1b(B" ``` ## 已知问题 - 无法绘制emoji等特殊字符