-
Notifications
You must be signed in to change notification settings - Fork 154
Open
Description
Hello, thanks for this awesome component 🙂
I tried to implement the type-text from advanced commands examples which use the edit-line built in command that is supposed to edit the last line.
commands={{
'type-text': (args, print, runCommand) => {
const text = args.slice(1).join(' ')
print('')
for (let i = 0; i < text.length; i += 1) {
setTimeout(() => {
runCommand(`edit-line ${text.slice(0, i + 1)}`)
}, 100 * i)
}
},
}}But instead of getting the last line updating, it return a new line at each iteration.
> type-text hello
h
he
hel
hell
helloAny idea of what could cause this? 🤔
JustinMartinDev, xuzhaogit and Neffez
Metadata
Metadata
Assignees
Labels
No labels