Skip to content

Commit e879ffd

Browse files
committed
Add --once and --writable flags to ttyd command
1 parent be9c92d commit e879ffd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/ttyd/ttyd.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ func New(cmd []string, port int) *Ttyd {
1919
"-t", "rendererType=canvas",
2020
"-t", "disableResizeOverlay=true",
2121
"-t", "cursorBlink=true",
22+
"--once",
23+
"--writable",
2224
"--",
2325
}, cmd...)
2426

internal/ttyd/ttyd_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func TestNew(t *testing.T) {
2727
"-t", "rendererType=canvas",
2828
"-t", "disableResizeOverlay=true",
2929
"-t", "cursorBlink=true",
30+
"--once",
31+
"--writable",
3032
"--",
3133
"hoge", "fuga",
3234
),

0 commit comments

Comments
 (0)