简体   繁体   English

Ctrl-L不会以cygwin / bash / mintty清除屏幕

[英]Ctrl-L does not clear the screen in cygwin/bash/mintty

I am using bash and mintty. 我正在使用bash和mintty。 Ctrl-L does not clear the screen like it should: Ctrl-L不会像应该清除屏幕一样清除屏幕:

0920:~$ ^L
-bash: $'\f': command not found

I get the same error if I've ssh-ed into a linux box via my cygwin mintty. 如果通过cygwin mintty将ssh-ed放入linux机器,则会出现相同的错误。

Sounds like an issue with your readline mappings in /etc/inputrc or ~/.inputrc. 听起来好像您的/ etc / inputrc或〜/ .inputrc中的readline映射有问题。 try adding this: 尝试添加以下内容:

"\\Cl": clear-screen “ \\ Cl”:清除屏幕

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM