[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] Enter/Return/C-M/C-J Help for GDB Tui Mode

From: Chet Ramey
Subject: Re: [Bug-readline] Enter/Return/C-M/C-J Help for GDB Tui Mode
Date: Mon, 3 Oct 2011 11:08:58 -0400

> I hope this is a reasonable place to ask this. I've become used to using 
> the following shortcuts or their rough equivalents in tcsh and zsh:
>      "\C-J": history-search-forward
>      "\C-K": history-search-backward
> I added those two to my .inputrc file and they work great in gdb 
> standard mode and other readline based systems as far as I can tell. 
> Unfortunately, in gdb-tui mode they end up swallowing my Enter key press 
> with the result that I cannot execute a command.
> I'm guessing this has something to do with Enter sending a C-J signal 
> maybe? Though why this only happens in Tui mode I'm not sure and I'm 
> afraid my knowledge of this stuff is poor so I'm not sure how to solve 
> this.

I believe that gdb-tui mode uses readline's callback interface.  It
should not make a difference, since the readline tty code makes sure
to turn off the bits (INLCR and ICRNL) that map carriage return to
newline and vice versa on input, but maybe that is it.  That is the
only reason I can think of for it differing between gdb-tui and other
readline-using applications. 


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]