mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
PIPE: Add pipe support for passing data into and out of terminal commands (#2395)
This commit is contained in:
committed by
GitHub
parent
4a22e16058
commit
92b8b58588
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user