summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2000-07-03 19:33:55 +0000
committerMichael Jennings <mej@kainx.org>2000-07-03 19:33:55 +0000
commitb4fbe2a9a048fb995cf41f68c192b30057072c26 (patch)
treea502ee6c6ec2950822d2816d57042c52651bf803 /src
parentdb2f3e7394d6f95435579bd9acad9cd9a727ed4d (diff)
downloadeterm-b4fbe2a9a048fb995cf41f68c192b30057072c26.tar.gz
Mon Jul 3 12:50:00 PDT 2000 Michael Jennings <mej@eterm.org>
I think this --pause mechanism will be agreeable to everyone. You can once again exit with any key (well, any key that has an actual character/string associated with it by X...not Insert, Home, etc.), but keys Eterm uses (like Shift-PgUp) will still work as expected. SVN revision: 2902
Diffstat (limited to 'src')
-rw-r--r--src/term.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 374bbae..8d4ce86 100644
--- a/src/term.c
+++ b/src/term.c
@@ -383,10 +383,9 @@ lookup_key(XEvent * ev)
}
/* At this point, all the keystrokes that have special meaning to us have been handled.
- If we're in pause mode, this is a keystroke we need to ignore. Just return here. */
+ If we're in pause mode, this is a keystroke asking us to exit. Otherwise, return here. */
if (paused) {
- /* Allow ESC or Ctrl-C to exit. */
- if ((keysym == XK_Escape) || ((ctrl) && ((keysym == XK_C) || (keysym == XK_c)))) {
+ if (keysym && len) {
exit(0);
}
LK_RET();