From 1c0433690571c1cc8ceb0b31587ad0625ebf1805 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet Date: Tue, 2 May 2017 08:02:18 +0200 Subject: [PATCH] Trap ^Z signal in the demo --- demo/jline-gogo.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/demo/jline-gogo.sh b/demo/jline-gogo.sh index 191966bb8..e28541206 100755 --- a/demo/jline-gogo.sh +++ b/demo/jline-gogo.sh @@ -84,6 +84,12 @@ if ${cygwin}; then DIRNAME=$(cygpath --path --windows "${DIRNAME}") fi +nothing() { + # nothing to do here + a=a +} +trap 'nothing' TSTP + # Launch gogo shell echo "Launching Gogo JLine..." echo "Classpath: $cp"