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