mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
fix(mobile): use raw fallback for composed prompts
This commit is contained in:
1 parent
c2eaba990b
commit
0761de3dae
2 files changed
+3
-7
No files matched your search
@@ -1193,7 +1193,7 @@ const KeyboardAccessoryBar = {
|
||||
// Match xterm's prepareTextForTerminal(): CR keeps embedded newlines inside
|
||||
// the single-line input transport and is what terminal.paste() emitted.
|
||||
const pasteText = text.replace(/\r?\n/g, '\r');
|
||||
app._sendInputAsync(sessionId, `\x1b[200~${pasteText}\x1b[201~`, { useMux: true });
|
||||
app._sendInputAsync(sessionId, `\x1b[200~${pasteText}\x1b[201~`);
|
||||
setTimeout(() => app._sendInputAsync(sessionId, '\r', { useMux: true }), 120);
|
||||
return true;
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user