This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: keycodes


Andy Koppe wrote:
Andrew DeFaria wrote:
 > "\e[1;5A": history-search-backward
 > "\e[1;5B": history-search-forward

Perhaps I don't understand this 'bash' feature, but it doesn't seem to work for me.
Start typing a command, press Ctrl-Up, and it finds the previous line in the history that started like that.
Why not simply type Ctrl-R then the first few letters of a command (or some letters in the middle of a command). Works great! Requires no support from any terminal emulator...
Yes, obviously you can bind the history search to any key you like.
The points were, since you seemed to have missed them, that 1) that's the default binding for bash and 2) it doesn't require MinTTY, nor xterm, nor any particular terminal emulator. IOW it works out of the box, in fact works in Cygwin's bash Windows console window and does not even restrict you to locating only the start of a command. All win, win, win situations as I see it.
--
Andrew DeFaria <http://defaria.com>
It's not hard to meet expenses, they're everywhere.



-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]