kingToolbox / kingToolbox/WindTerm

The quick commands \n and \r do not match the SCRT display in the Linux commond line, is it a problem with my settings?

Open
#2,289 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

my quick command ——
```shell
col name for a10 \n
col state for a10 \n
select name,state,type,round(total_mb/1024,2) "total(Gb)",round(free_mb/1024,2) "free(Gb)",round((free_mb / total_mb) * 100, 2) as "free_pct(%)" from v$asm_diskgroup; \n
```
click it
![图片](https://github.com/kingToolbox/WindTerm/assets/15424211/0849d5d3-36b0-4659-b4e7-cd000bda3658)

看红色标记的部分,我尝试修改快捷命令\n变为\r,还是会得到一样的结果。
Looking at the red marked, I try to change the shortcut command \n to \r, and I still get the same result.

the same quick commond in SCRT
![图片](https://github.com/kingToolbox/WindTerm/assets/15424211/75f786db-522c-4694-9d4a-e1f5d623b88b)

是需要在哪里做设置?还是说快捷命令的书写方式有问题?
How do I set it up so that I get the same display result as SCRT

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the quick command in WindTerm against the Linux command line, then compare its output with the same command in SCRT. Start by tracing how quick commands interpret \n and \r and how the terminal display renders them. Done means the command produces the expected line breaks and display, or the required setting and command syntax are documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.