fix terminal not printing the command you just ran.

This commit is contained in:
Olivier Gagnon
2021-09-16 03:15:39 -04:00
parent 34dda1f252
commit 1890f1fd44
+1
View File
@@ -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;