Skip to content

Commit

Permalink
fix: terminal: input
Browse files Browse the repository at this point in the history
  • Loading branch information
Tardo committed Oct 25, 2024
1 parent d39cca8 commit d5ef21c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/js/page/terminal/terminal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ export default class Terminal {

updateAssistantoptions() {
this.#mutexAvailableOptions.cancel();
this.#mutexAvailableOptions.release();
this.#mutexAvailableOptions
.runExclusive(async () => {
const user_input = this.screen.getUserInput();
Expand Down
14 changes: 14 additions & 0 deletions src/js/page/trash/interpreter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -962,6 +963,7 @@ export default class Interpreter {
silent: false,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -985,6 +987,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -999,6 +1002,7 @@ export default class Interpreter {
silent: false,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1024,6 +1028,7 @@ export default class Interpreter {
silent: false,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand Down Expand Up @@ -1063,6 +1068,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1077,6 +1083,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1091,6 +1098,7 @@ export default class Interpreter {
silent: false,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1104,6 +1112,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand Down Expand Up @@ -1176,6 +1185,7 @@ export default class Interpreter {
silent: true,
isData: true,
offset: token.start + 1,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1194,6 +1204,7 @@ export default class Interpreter {
silent: true,
isData: true,
offset: token.start + 1,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand Down Expand Up @@ -1233,6 +1244,7 @@ export default class Interpreter {
silent: true,
isData: true,
offset: token.start + 1,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand Down Expand Up @@ -1261,6 +1273,7 @@ export default class Interpreter {
silent: false,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand All @@ -1281,6 +1294,7 @@ export default class Interpreter {
silent: true,
offset: token.start + 1,
noReturn: true,
ignoreErrors: options.ignoreErrors,
},
res,
to_append,
Expand Down

0 comments on commit d5ef21c

Please sign in to comment.