Skip to content

Commit

Permalink
update terminal web adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 16, 2022
1 parent 1b93a0b commit 1008e37
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/prefix.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,18 +194,24 @@ class WebAdapter {
echo(arg) {
this._term.echo(to_string(arg), { newline: this._config.newline });
}
echo_extra(string, delay) {
return this._term.echo(string, { typing: true, delay });
}
ask(message) {
return this._term.read(message);
}
ask_extra(message, delay) {
return this._term.read(message, { typing: true, delay });
}
echo_extra(string, delay) {
return this._term.echo(string, { typing: true, delay });
prompt(string) {
this._term.set_prompt(string);
}
prompt_extra(string, delay) {
return this._term.set_prompt(string, { typing: true, delay });
}
input(string) {
const term = this._term;
}
input_extra(string, delay) {
return this._term.typing('enter', delay, string);
}
Expand Down

0 comments on commit 1008e37

Please sign in to comment.