From d0ed04e8ccaf9d47df6eb0a4777ca81dd28430ae Mon Sep 17 00:00:00 2001 From: onefang Date: Thu, 2 Sep 2021 22:50:42 +1000 Subject: Pass the sledjchisl mode to the new tmux instance. --- src/sledjchisl/sledjchisl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/sledjchisl') diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index c2eaa6e..9bddb0e 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -8462,7 +8462,8 @@ Build the OpenSim. snprintf(toybuf, sizeof(toybuf), "%s %s %s/%s set-option -g default-command 'export PATH=%s:$PATH; bash'\\; " // Set x,y to huge values, to work around an OpenSim bug. - "new-session -d -x 256 -y 420 -s %s -n '%s' bash -c 'export PATH=%s:$PATH; printf \"\\033]0;SledjChisl\\007\"; /usr/bin/valgrind --leak-check=full %s/current/bin/sledjchisl %s; cd %s; bash' \\; " + "new-session -d -x 256 -y 420 -s %s -n '%s' bash -c 'export PATH=%s:$PATH; printf \"\\033]0;SledjChisl\\007\"; " + "/usr/bin/valgrind --leak-check=full %s/current/bin/sledjchisl %s %s; cd %s; bash' \\; " "split-window -vp 50 -d -t '%s:0.0' \\; " "split-window -hp 50 -d -t '%s:0.1' \\; " "split-window -hp 50 -d -t '%s:0.0' " @@ -8474,7 +8475,8 @@ Build the OpenSim. "cd %s; bash'" , pre, Tcmd, scRun, Tsocket, scBin, - Tconsole, Ttab, scBin, scRoot, FLAG(v) ? "-v" : "", scRoot, + Tconsole, Ttab, scBin, + scRoot, modeStrings[currentMode], FLAG(v) ? "-v" : "", scRoot, Tconsole, Tconsole, Tconsole, -- cgit v1.1