Skip to content

Commit 828f597

Browse files
authored
Merge pull request #694 from JunoLab/sp/morepromptfixes
more prompt fixes
2 parents 942d126 + 853ef27 commit 828f597

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/runtime/console.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export function activate (_ink) {
7272
clearconsole: () => terminal.clear(),
7373
cursorpos: () => terminal.cursorPosition(),
7474
writeToTerminal: (str) => {
75-
terminal.ty.write(str)
75+
if (terminal.ty) {
76+
terminal.ty.write(str)
77+
return true
78+
}
79+
return false
7680
}
7781
})
7882

0 commit comments

Comments
 (0)