* Using C-s to forward search command history
@ 2005-08-19 13:12 Greg Law
2005-08-19 13:31 ` Bob Rossi
2005-08-20 12:18 ` Michael Veksler
0 siblings, 2 replies; 7+ messages in thread
From: Greg Law @ 2005-08-19 13:12 UTC (permalink / raw)
To: gdb; +Cc: Julian Smith
Hi group,
If I've read the info pages correctly, I can use C-s in order to search
the command history forwards. However, this sequence also seems to be
the control sequence to suspend the terminal :-(
Have I misunderstood, or is there a way round this? (It would be very
useful for me to be able to search forwards).
Thanks in advance,
Greg
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-19 13:12 Using C-s to forward search command history Greg Law
@ 2005-08-19 13:31 ` Bob Rossi
2005-08-20 12:18 ` Michael Veksler
1 sibling, 0 replies; 7+ messages in thread
From: Bob Rossi @ 2005-08-19 13:31 UTC (permalink / raw)
To: Greg Law; +Cc: gdb, Julian Smith
> If I've read the info pages correctly, I can use C-s in order to search
> the command history forwards. However, this sequence also seems to be
> the control sequence to suspend the terminal :-(
>
> Have I misunderstood, or is there a way round this? (It would be very
> useful for me to be able to search forwards).
This is not a GDB issue, it's a readline issue. Try doing the same thing
with while using the bash shell. You might be able to remap the
functionality of forward-search-history in your .inputrc.
Bob Rossi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-19 13:12 Using C-s to forward search command history Greg Law
2005-08-19 13:31 ` Bob Rossi
@ 2005-08-20 12:18 ` Michael Veksler
2005-08-20 13:20 ` Bob Rossi
1 sibling, 1 reply; 7+ messages in thread
From: Michael Veksler @ 2005-08-20 12:18 UTC (permalink / raw)
To: Greg Law; +Cc: gdb, Julian Smith
Greg Law wrote on 19/08/2005 16:12:43:
> If I've read the info pages correctly, I can use C-s in order to search
> the command history forwards. However, this sequence also seems to be
> the control sequence to suspend the terminal :-(
>
> Have I misunderstood, or is there a way round this? (It would be very
> useful for me to be able to search forwards).
This is a terminal feature that interferes with your C-s use,
it is not a readline issue. The following line works for me.
I put it in my .kshrc, .cshrc, .zshrc startup files after
making sure this is an interactive shell:
stty -ixon
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-20 12:18 ` Michael Veksler
@ 2005-08-20 13:20 ` Bob Rossi
2005-08-20 16:05 ` Michael Veksler
2005-08-20 17:55 ` Dan Kegel
0 siblings, 2 replies; 7+ messages in thread
From: Bob Rossi @ 2005-08-20 13:20 UTC (permalink / raw)
To: Michael Veksler; +Cc: Greg Law, gdb, Julian Smith
On Sat, Aug 20, 2005 at 03:19:33PM +0300, Michael Veksler wrote:
>
>
>
>
> Greg Law wrote on 19/08/2005 16:12:43:
> > If I've read the info pages correctly, I can use C-s in order to search
> > the command history forwards. However, this sequence also seems to be
> > the control sequence to suspend the terminal :-(
> >
> > Have I misunderstood, or is there a way round this? (It would be very
> > useful for me to be able to search forwards).
>
> This is a terminal feature that interferes with your C-s use,
> it is not a readline issue. The following line works for me.
> I put it in my .kshrc, .cshrc, .zshrc startup files after
> making sure this is an interactive shell:
> stty -ixon
That's interesting. Is the (stop/start) ^s/^q feature of the terminal
even useful these days? Why is it defaulted on?
Bob Rossi
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-20 13:20 ` Bob Rossi
@ 2005-08-20 16:05 ` Michael Veksler
2005-08-20 17:23 ` Andreas Schwab
2005-08-20 17:55 ` Dan Kegel
1 sibling, 1 reply; 7+ messages in thread
From: Michael Veksler @ 2005-08-20 16:05 UTC (permalink / raw)
To: Bob Rossi; +Cc: gdb, Greg Law, Julian Smith
Bob Rossi <bob@brasko.net> wrote on 20/08/2005 16:20:23:
> On Sat, Aug 20, 2005 at 03:19:33PM +0300, Michael Veksler wrote:
> >
> > Greg Law wrote on 19/08/2005 16:12:43:
> > > If I've read the info pages correctly, I can use C-s in order to
search
> > > the command history forwards. However, this sequence also seems to
be
> > > the control sequence to suspend the terminal :-(
[...]
> >
> > This is a terminal feature that interferes with your C-s use,
> > it is not a readline issue. The following line works for me.
> > I put it in my .kshrc, .cshrc, .zshrc startup files after
> > making sure this is an interactive shell:
> > stty -ixon
>
> That's interesting. Is the (stop/start) ^s/^q feature of the terminal
> even useful these days? Why is it defaulted on?
I see people use the ^s/^q all the time, especially with a long running
application that emits a line of trace about every second.
I like the search feature more, so I disable the suspend sequence.
Michael
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-20 16:05 ` Michael Veksler
@ 2005-08-20 17:23 ` Andreas Schwab
0 siblings, 0 replies; 7+ messages in thread
From: Andreas Schwab @ 2005-08-20 17:23 UTC (permalink / raw)
To: Michael Veksler; +Cc: Bob Rossi, gdb, Greg Law, Julian Smith
Michael Veksler <VEKSLER@il.ibm.com> writes:
> I see people use the ^s/^q all the time, especially with a long running
> application that emits a line of trace about every second.
> I like the search feature more, so I disable the suspend sequence.
IMHO readline should be built with USE_XON_XOFF, so that you can have
both.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Using C-s to forward search command history
2005-08-20 13:20 ` Bob Rossi
2005-08-20 16:05 ` Michael Veksler
@ 2005-08-20 17:55 ` Dan Kegel
1 sibling, 0 replies; 7+ messages in thread
From: Dan Kegel @ 2005-08-20 17:55 UTC (permalink / raw)
To: Bob Rossi; +Cc: Michael Veksler, Greg Law, gdb, Julian Smith
Bob Rossi wrote:
>>This is a terminal feature that interferes with your C-s use,
>>it is not a readline issue.
Bzzt. Programs that want to accept commands like control-s
are supposed to put the terminal into raw mode. The
readline library does this. If it didn't work,
something's wrong.
> That's interesting. Is the (stop/start) ^s/^q feature of the terminal
> even useful these days? Why is it defaulted on?
Yes, it's useful. I use it every other day or so when
a program is spewing lots of output; I hit ^s, then
I can scroll back without having it scroll to the
end every time the program outputs something else.
- Dan
--
Trying to get a job as a c++ developer? See http://kegel.com/academy/getting-hired.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-08-20 17:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-19 13:12 Using C-s to forward search command history Greg Law
2005-08-19 13:31 ` Bob Rossi
2005-08-20 12:18 ` Michael Veksler
2005-08-20 13:20 ` Bob Rossi
2005-08-20 16:05 ` Michael Veksler
2005-08-20 17:23 ` Andreas Schwab
2005-08-20 17:55 ` Dan Kegel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).