iC-j for printing input rather than the candidate. - iomenu - interactive terminal-based selection menu Err bitreich.org 70 hgit clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu URL:git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu bitreich.org 70 1Log /scm/iomenu/log.gph bitreich.org 70 1Files /scm/iomenu/files.gph bitreich.org 70 1Refs /scm/iomenu/refs.gph bitreich.org 70 1Tags /scm/iomenu/tag bitreich.org 70 1README /scm/iomenu/file/README.gph bitreich.org 70 1LICENSE /scm/iomenu/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit d039d19d82cc89665d453180d25007bf2329c3e6 /scm/iomenu/commit/d039d19d82cc89665d453180d25007bf2329c3e6.gph bitreich.org 70 1parent e01fa60f7992641ba6f3f5109dec6783e397a248 /scm/iomenu/commit/e01fa60f7992641ba6f3f5109dec6783e397a248.gph bitreich.org 70 hAuthor: Josuah Demangeonā  ā µ URL:mailto:mail@josuah.net bitreich.org 70 iDate: Tue, 4 Apr 2017 00:07:11 +0200 Err bitreich.org 70 i Err bitreich.org 70 iC-j for printing input rather than the candidate. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M iomenu.1 | 5 ++++- Err bitreich.org 70 i M iomenu.c | 4 ++++ Err bitreich.org 70 i Err bitreich.org 70 i2 files changed, 8 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/iomenu.1 b/iomenu.1 /scm/iomenu/file/iomenu.1.gph bitreich.org 70 i@@ -52,9 +52,12 @@ An active selection is highlighted, and can be controlled with keybindings. Err bitreich.org 70 i .It Ic ^P Ns , Ic ^N Err bitreich.org 70 i Move selection to the previous/next item. Err bitreich.org 70 i . Err bitreich.org 70 i-.It Ic ^M Ns , Ic ^J Ns , Ic Enter Err bitreich.org 70 i+.It Ic ^M Ns , Ic Enter Err bitreich.org 70 i Print the selection to the standard output, and exit 0. Err bitreich.org 70 i . Err bitreich.org 70 i+.It Ic ^J Err bitreich.org 70 i+Print the current input to the standard output, and exit 0. Err bitreich.org 70 i+. Err bitreich.org 70 i .It Ic ^Y Err bitreich.org 70 i Print the selection to the standard output but Err bitreich.org 70 i .Sy continue running . Err bitreich.org 70 1diff --git a/iomenu.c b/iomenu.c /scm/iomenu/file/iomenu.c.gph bitreich.org 70 i@@ -413,6 +413,10 @@ input_key(void) Err bitreich.org 70 i break; Err bitreich.org 70 i Err bitreich.org 70 i case CONTROL('J'): Err bitreich.org 70 i+ fputws(input, stdout); Err bitreich.org 70 i+ putwchar('\n'); Err bitreich.org 70 i+ return EXIT_SUCCESS; Err bitreich.org 70 i+ Err bitreich.org 70 i case CONTROL('M'): /* enter */ Err bitreich.org 70 i print_selection(); Err bitreich.org 70 i return EXIT_SUCCESS; Err bitreich.org 70 .