kingToolbox / kingToolbox/WindTerm

SSH连接Linux服务器使用less命令查看日志文件,上翻时显示错误

Open
#3,073 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

如图所示,SSH连接Linux服务器使用less命令查看日志文件:

![Image](https://github.com/user-attachments/assets/00dfd97d-7a9e-4902-9d90-b8234dfaeb86)

然后日志文件中有输出json格式的接口请求报文内容,如下图所示(重点关注红线标注内容):

![Image](https://github.com/user-attachments/assets/fd992b0e-8175-414f-abf4-4dfae123699f)

在向下翻页或滚动查看时无问题,当向上翻页或滚动查看时,会将json报文{}内第一个对象的字段名称首字母截取掉,如下图红线标注所示:

![Image](https://github.com/user-attachments/assets/2e4c125e-9bc5-42a2-87bc-6d1728b71dfc)
我是从2.6版本开始使用windterm的,2.7版本还是有这个问题,希望尽快解决!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in WindTerm by connecting to a Linux server over SSH, opening a JSON-containing log with less, and scrolling in both directions. Compare the displayed first object field names while scrolling upward; done means the JSON text remains intact and no leading characters are lost.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.