[IPython-user] Binding C-l to clear-screen on OS X
Ben Beuchler
insyte@gmail....
Fri Sep 4 12:24:45 CDT 2009
> Overall readline seems to be working perfectly, but so far I haven't
> been able to get back to my preferred behavior for the Ctrl-l
> combination: clearing the screen.
>
> It seems to me that adding these two lines to the main() function in
> ~/.ipython/ipy_user_conf.py should have done the trick:
>
> import readline
> readline.parse_and_bind("\C-l: clear-screen")
>
> But ctrl-l instead seems to be acting like a <TAB> key.
I switched to adding this line to ~/.ipython/ipythonrc:
readline_parse_and_bind "\C-l": clear-screen
And that works well.
-Ben
More information about the IPython-user
mailing list