I'm trying to get CTRL + L to work under solaris 10,
So I tried to add a binding to ~/.inputrc
"\C-l":'clear\n' Well it did bind to the clear command, but clear command itself fails, sigh.
Any ideas?
P.S I've tried to set TERM variable to linux or xterm, which does not help.
EDIT
Instead of modifying inputrc, looks like I should do
export TERM=xterm Solaris simply does not work with xterm-256color, which is set by iTerm2 by default.

printf '\033\143'clear your screen?echo $'"\C-l": "printf \'\\033c\'\015"' >> ~/.inputrc, thenctrl-x ctrl-rto re-read~/.inputrc, then tryctrl-l.