kingToolbox / kingToolbox/WindTerm

cat出来的文本无法完美输出制表符

Open
#3,586 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

WindTerm版本:2.7.0
Host操作系统:windows11
连接协议:ssh

使用WindTerm的ssh连接到某个Linux主机中,找一个带制表符(\t)缩进的文本文件,用cat命令将其打印到Console中,再将其打印内容复制粘贴到记事本,会发现制表符被8个空格字符代替了。

```
chenglong.hu@cdatawifi:~/test$ echo -e "\ttest" > mytest.txt
chenglong.hu@cdatawifi:~/test$ cat mytest.txt
test
```

如果将ssh工具换成xshell,同样的操作能正常输出制表符(\t)内容

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the report with WindTerm 2.7.0 on Windows 11: connect by SSH to Linux, create a file with a tab using the shown shell commands, run cat, and copy the console text into a text editor. Start by tracing the terminal rendering and copy path; done means copied output preserves the tab rather than converting it to eight spaces, with behavior checked against the reported example.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.