Skip to content

Commit 15411ce

Browse files
committed
tmate: send Ctrl + c when openning a session
This skips the initial messages. And let clients see the prompt when joining instead of a black screen.
1 parent 9654a16 commit 15411ce

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/ubus-tmate/files/usr/lib/lua

packages/ubus-tmate/files/usr/lib/lua/tmate.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ end
3939

4040
function tmate.open_session()
4141
tmate.cmd_as_str("new-session -d")
42+
tmate.cmd_as_str("send-keys C-c")
4243
end
4344

4445
function tmate.wait_session_ready()

0 commit comments

Comments
 (0)