Skip to content

Commit d40f6db

Browse files
authored
Merge pull request #118 from koki-develop/add-writable-flag-to-ttyd
Add --once and --writable flags to ttyd command
2 parents 68990e7 + 7ddb1d3 commit d40f6db

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ English | <a href="./README.ja.md">日本語</a>
4141

4242
## :information_source: Prerequisite
4343

44-
cLive requires [ttyd](https://tsl0922.github.io/ttyd/) (version `1.7.0` or higher) to be installed.
44+
cLive requires [ttyd](https://tsl0922.github.io/ttyd/) (version `1.7.4` or higher) to be installed.
4545
For example, if you are using homebrew, you can install it with `brew install`.
4646

4747
```sh

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)