PIPE: Add pipe support for passing data into and out of terminal commands (#2395)

This commit is contained in:
Michael Ficocelli
2026-02-22 12:18:23 -07:00
committed by GitHub
parent 4a22e16058
commit 92b8b58588
68 changed files with 2430 additions and 480 deletions
+2 -2
View File
@@ -231,11 +231,11 @@ export function TerminalInput(): React.ReactElement {
if (event.key === KEY.ENTER) {
event.preventDefault();
const command = searchResults.length ? searchResults[searchResultsIndex] : value;
Terminal.print(`[${Player.getCurrentServer().hostname} /${Terminal.cwd()}]> ${command}`);
Terminal.printAndBypassPipes(`[${Player.getCurrentServer().hostname} /${Terminal.cwd()}]> ${command}`);
if (command) {
Terminal.executeCommands(command);
saveValue("");
resetSearch();
await Terminal.executeCommands(command);
}
return;
}