style(ttyd): enable cursor blink via client option

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-15 23:25:36 +08:00
parent 1ff9fd90e5
commit 42d1d361dc

View File

@@ -129,7 +129,7 @@ async function startTtyd() {
try { try {
const shell = fs.existsSync('/bin/bash') ? '/bin/bash' : '/bin/sh'; const shell = fs.existsSync('/bin/bash') ? '/bin/bash' : '/bin/sh';
const proc = spawn(TTYD_BIN, ['-p', String(TTYD_PORT), '-i', '127.0.0.1', '-W', shell], { const proc = spawn(TTYD_BIN, ['-p', String(TTYD_PORT), '-i', '127.0.0.1', '-W', '-t', 'cursorBlink=true', shell], {
stdio: 'ignore', stdio: 'ignore',
detached: true, detached: true,
}); });