From 5f123887b78a2e766338519501c94b26c963e18e 2010-04-25 04:42:49 From: Fernando Perez Date: 2010-04-25 04:42:49 Subject: [PATCH] Set Control-L to clear the screen when readline supports it. Closes https://bugs.launchpad.net/ipython/+bug/435519 Note that before we had C-L to list completions (which tab does anyway), so this is a minor change in behavior. Users can get the previous behavior if they want with a simple config setting, but C-L is the standard 'screen clear' keybinding. --- diff --git a/IPython/core/iplib.py b/IPython/core/iplib.py index 72200d9..12cf9c6 100644 --- a/IPython/core/iplib.py +++ b/IPython/core/iplib.py @@ -245,7 +245,7 @@ class InteractiveShell(Component, Magic): readline_remove_delims = Str('-/~', config=True) readline_parse_and_bind = List([ 'tab: complete', - '"\C-l": possible-completions', + '"\C-l": clear-screen', 'set show-all-if-ambiguous on', '"\C-o": tab-insert', '"\M-i": " "',