handle SIGTERM nostop print pass
handle SIGPIPE nostop noprint pass
set height 0
+set \$_exitcode=1
define hook-stop
if \$_exitcode == 0
quit
"
echo "$COMMON
-run ::1 4000 < $DEBUG_DIR/name
+run \"[::1]:4000\" < $DEBUG_DIR/name
" > $DEBUG_DIR/client_script
echo "$COMMON
-run 4000
+set print thread-events off
+run \"[::1]:4000\"
" > $DEBUG_DIR/server_script
-konsole -e bash -c "
+kitty --detach -e bash -c "
echo \$\$ > $DEBUG_DIR/server_pid
exec gdb --command $DEBUG_DIR/server_script ./DragonblocksServer
-" & sleep 0.5
+"
+sleep 0.5
gdb --command $DEBUG_DIR/client_script ./Dragonblocks