On a new freebsd-14.0-RELEASE install, the first i do is installing bash, only to find out the the "clear-display" readline command not being able to also clear the scrollback. I had to build it again with debug info and attach lldb to find that terminfo was the culprit. Maybe we should add a line in port note saying that without terminfo installed some features will be missing?
My test procedure involves the following steps: $ jot 3 $ [pressed CTRL-L invoking clear-display] As far as I know, this issue usually occurs when the TERM environment variable is not defined. However, in this case, installing the terminfo-db does not seem to help either. Could you show me how you're conducting your tests?
Sorry i had a typo. I meant the "clear-screen" readline binding. It should output "^[[H^[[2J^[[3J" which creates a new blank page and clears the scrollback, much like the cmd+K in Terminal.app on macOS. My problem is with the PuTTY which supports this escape sequence, and did properly set TERM=xterm, but bash just refuses to do so until installing terminfo from ports.
"clear-screen" should be bound to meta(alt/option)+ctrl+l by default.