mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 01:53:48 +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.
|
// 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user