mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 16:37:33 +01:00
fix terminal not printing the command you just ran.
This commit is contained in:
parent
34dda1f252
commit
1890f1fd44
@ -159,6 +159,7 @@ export function TerminalRoot({ terminal, engine, player }: IProps): React.ReactE
|
||||
// Run command.
|
||||
if (event.keyCode === KEY.ENTER && value !== "") {
|
||||
event.preventDefault();
|
||||
terminal.print(`[${player.getCurrentServer().hostname} ~${terminal.cwd()}]> ${value}`);
|
||||
terminal.executeCommands(engine, player, value);
|
||||
setValue("");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user