Skip to content

Commit a715107

Browse files
committed
androidでスクロールできるようxtermをアップデート
1 parent 9dc7b60 commit a715107

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

app/terminal/repl.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ export function ReplTerminal({
571571
"w-full h-full"
572572
)}
573573
ref={terminalRef}
574+
onTouchEnd={() => terminalInstanceRef.current?.focus()}
574575
/>
575576
</div>
576577
</Modal>

app/terminal/terminal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ export function useTerminal(props: TerminalProps) {
134134
]).then(([{ Terminal }, { FitAddon }]) => {
135135
if (!abortController.signal.aborted) {
136136
const term = new Terminal({
137+
screenReaderMode: true,
137138
cursorBlink: true,
138139
convertEol: true,
139140
cursorStyle: "bar",

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
"@opennextjs/cloudflare": "^1.16.1",
2929
"@ruby/wasm-wasi": "^2.7.2",
3030
"@typescript/vfs": "^1.6.2",
31-
"@xterm/addon-fit": "0.11.0-beta.115",
32-
"@xterm/xterm": "5.6.0-beta.115",
31+
"@xterm/addon-fit": "^0.11.0",
32+
"@xterm/xterm": "^6.1.0-beta.168",
3333
"ace-builds": "^1.43.2",
3434
"async-mutex": "^0.5.0",
3535
"better-auth": "^1.4.5",
@@ -61,8 +61,8 @@
6161
"devDependencies": {
6262
"@eslint/eslintrc": "^3",
6363
"@tailwindcss/postcss": "^4",
64-
"@types/js-yaml": "^4.0.9",
6564
"@types/chai": "^5.2.3",
65+
"@types/js-yaml": "^4.0.9",
6666
"@types/mocha": "^10.0.10",
6767
"@types/node": "^20",
6868
"@types/object-inspect": "^1.13.0",

0 commit comments

Comments
 (0)