简体   繁体   中英

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

I am using bash and mintty. Ctrl-L does not clear the screen like it should:

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.

Sounds like an issue with your readline mappings in /etc/inputrc or ~/.inputrc. try adding this:

"\\Cl": clear-screen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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