mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-24 22:11:40 +02:00
Specify tmux session in capture-pane command
This commit is contained in:
parent
8894328483
commit
bc83349133
@ -1869,7 +1869,7 @@ func captureTerminalOutputWithShellNameAndDimensions(t *testing.T, tester shellT
|
|||||||
fullCommand += " sleep " + sleepAmount + "\n"
|
fullCommand += " sleep " + sleepAmount + "\n"
|
||||||
}
|
}
|
||||||
fullCommand += " sleep 0.5\n"
|
fullCommand += " sleep 0.5\n"
|
||||||
fullCommand += " tmux capture-pane -p\n"
|
fullCommand += " tmux capture-pane -t foo -p\n"
|
||||||
fullCommand += " tmux kill-session -t foo\n"
|
fullCommand += " tmux kill-session -t foo\n"
|
||||||
hctx.GetLogger().Infof("Running tmux command: " + fullCommand)
|
hctx.GetLogger().Infof("Running tmux command: " + fullCommand)
|
||||||
return strings.TrimSpace(tester.RunInteractiveShell(t, fullCommand))
|
return strings.TrimSpace(tester.RunInteractiveShell(t, fullCommand))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user