[Crash-utility] [PATCH] Changing the default <CTRL>-l keybinding for the vi insertion keymap.

Dave Anderson anderson at redhat.com
Sat Nov 28 16:26:36 UTC 2015



----- Original Message -----
> By default, the clear screen behaviour is only used when not in
> insertion mode. This causes the screen to clear in insertion mode
> instead of just printing a '^L'.
> 
> Signed-off-by: Kyle Walker <kwalker at redhat.com>
> ---
>  cmdline.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/cmdline.c b/cmdline.c
> index 226bd20..dd310ed 100644
> --- a/cmdline.c
> +++ b/cmdline.c
> @@ -2059,6 +2059,8 @@ readline_init(void)
>  			vi_insertion_keymap);
>  		rl_bind_key_in_map(CTRL('N'), rl_get_next_history,
>  			vi_insertion_keymap);
> +		rl_bind_key_in_map(CTRL('l'), rl_clear_screen,
> +			vi_insertion_keymap);
>  
>  		rl_generic_bind(ISFUNC, "[A", (char *)rl_get_previous_history,
>  			vi_movement_keymap);
> --
> 2.4.3
> 
> 

Clear enough -- queued for crash-7.1.4:

  https://github.com/crash-utility/crash/commit/34ca7f4e35b1de6c63ce319447b973e02bd5b6c3

Thanks,
  Dave




More information about the Crash-utility mailing list