Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version2.2.2: When the system mode been set to 'none' mode, 'Ctrl + L' not working #335

Open
asflower opened this issue Dec 3, 2021 · 7 comments

Comments

@asflower
Copy link

asflower commented Dec 3, 2021

Is that normal?
Or is there any way to make the term less fancy?

@mzky
Copy link

mzky commented Dec 7, 2021

Ctrl+l moves the last line to the top, Ctrl +L clears all scroll records . How not to Work?
If the shortcut key is invalid, check whether the shortcut key conflicts with other software .

@asflower
Copy link
Author

asflower commented Dec 7, 2021

Ctrl+l moves the last line to the top, Ctrl +L clears all scroll records . How not to Work? If the shortcut key is invalid, check whether the shortcut key conflicts with other software .

'Ctrl + L' invalid only if i set the mode to 'none'

@mzky
Copy link

mzky commented Dec 7, 2021

It also has no effect if the mode is set to 'cmd'

@kingToolbox
Copy link
Owner

Sorry for the late replay. I have been on vacation last month.

Ctrl+L needs the support of the remote system. After pressing Ctrl+L, WindTerm will send the text of clearScreen configured in the .system file.

Taking the linux system as an example, the clearScreen is defined as \u000c in the WindTerm_install_path/terminal/schemes/linux.system. So when you press Ctrl+L, WindTerm will send \u000c to the remote system. If the remote system understands this command, it will send the control sequence ED to WindTerm to clear the screen, and then WindTerm will clear the screen after receiving ED. In this way, the remote and local can be guaranteed to be exactly the same.

Each system has its own clear screen command, usually \u000c, but there are other commands, such as the command of Cmd is cls\n.

Since the remote system type cannot be known when the system none is selected, there is no clearScreen configured in the WindTerm_install_path/terminal/schemes/none.system file, this is why the screen cannot be cleared.

@asflower
Copy link
Author

got it, thanks for your reply.

@kingToolbox
Copy link
Owner

In the new WindTerm_2.4.0_Prerelease_1, a new dumb system has been added. In addition to features such as highlighting and folding, the dumb system supports clearing the screen locally. So for some dumb devices, especially serial devices, if you need to clear the screen locally, please use dumb system instead of none system.

The dumb system also supports -> command prompt for the VxWorks system. Please download and use it, if you have any questions, please let me know, thank you.

BTW:
Please use dumb system with caution and only for the dumb devices. If the remote supports the clear screen command, using dumb system to clear the screen locally will cause the local display to be out of sync with the remote, which may cause various display errors.

@gotnix
Copy link

gotnix commented Jun 13, 2024

快捷键 ctrl+l 在 tmux(https://tmux.github.io/) 下不工作,不使用 tmux 的情况下正常。

WindTerm 版本:2.6.1.

SSH 会话配置:

  • 终端:xterm-256color
  • 系统:linux
  • 字符集:UTF-8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants