Permalink
Browse files

adding basic search backwards capabilities

CTRL-R now maps to the reverse-i-search as known from readline.

Still not perfect, though:

- not possible to leave mode through ESC or CTRL-G because the
  terminal is not really in raw mode, as it seems.
- Hitting CTRL-R twice does not lead to the last search term
  being used (bug?)
  • Loading branch information...
1 parent d154af3 commit 1e6c9577450d0d6511b4a3a902086d325aa42f09 @hns hns committed Apr 30, 2010
@@ -25,6 +25,7 @@
final char CTRL_D = 4;
final char CTRL_E = 5;
final char CTRL_F = 6;
+ final char CTRL_G = 7;
final static char CTRL_K = 11;
final static char CTRL_L = 12;
final char CTRL_N = 14;
@@ -273,4 +274,9 @@
*/
final static short CLEAR_LINE = -63;
+ /**
+ * Operation that aborts the current command (like searching)
+ */
+ final static short ABORT = -64;
+
}
Oops, something went wrong.

0 comments on commit 1e6c957

Please sign in to comment.