On Fri, Sep 26, 2008 at 03:28:08AM -0400, Kuang He wrote:
> Hi,
>
> A small patch to enable people to make cgdb-specific customizations in
> their ~/.inputrc files.
>
> For example, a possible snippet of ~/.inputrc:
>
> $if cgdb
> "\C-p": history-search-backward
> "\C-n": history-search-backward
> $endif
>
>
> $ diff -ub ./various/rline/src/rline.c.old ./various/rline/src/rline.c
> --- ./various/rline/src/rline.c.old 2008-09-26 01:57:43.000000000 -0400
> +++ ./various/rline/src/rline.c 2008-09-26 03:23:13.000000000 -0400
> @@ -96,6 +96,7 @@
> rline->rline_rl_last_func = NULL;
> rline->rline_rl_completion_query_items = rl_completion_query_items;
>
> + rl_readline_name = "cgdb";
> rl_instream = rline->input;
> rl_outstream = rline->output;
The future me committed this a week ago.
Bob Rossi
|