diff options
author | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-03-28 20:16:25 +0000 |
---|---|---|
committer | Kjell Wooding <kjell@cvs.openbsd.org> | 2006-03-28 20:16:25 +0000 |
commit | be91d660935bd56697b47c8e66c8a2da25330d21 (patch) | |
tree | 3fa65d8eab69d7caf645da8f99c8479410ed346e | |
parent | 17d22ff90d7678f627704149ed0e537b4380531e (diff) |
Use <sp> and <cr> as shortcuts for y/n (like emacs)
requested by Han Boetes.
-rw-r--r-- | usr.bin/mg/echo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mg/echo.c b/usr.bin/mg/echo.c index 8a39b1bceeb..fcc9beb1a2a 100644 --- a/usr.bin/mg/echo.c +++ b/usr.bin/mg/echo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: echo.c,v 1.43 2005/12/20 06:17:36 kjell Exp $ */ +/* $OpenBSD: echo.c,v 1.44 2006/03/28 20:16:24 kjell Exp $ */ /* This file is in the public domain. */ @@ -63,9 +63,9 @@ eyorn(const char *sp) ewprintf("%s? (y or n) ", sp); for (;;) { s = getkey(FALSE); - if (s == 'y' || s == 'Y') + if (s == 'y' || s == 'Y' || s == ' ') return (TRUE); - if (s == 'n' || s == 'N') + if (s == 'n' || s == 'N' || s == CCHR('M')) return (FALSE); if (s == CCHR('G')) return (ctrlg(FFRAND, 1)); |