mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
Update ctrl+c hotkey to print current text to terminal without executing it to mimic real terminal behavior
This commit is contained in:
parent
6c026e6d5c
commit
6d8a3e192b
@ -324,6 +324,7 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
|
|||||||
if (Settings.EnableBashHotkeys) {
|
if (Settings.EnableBashHotkeys) {
|
||||||
if (event.code === KEYCODE.C && event.ctrlKey && ref && ref.selectionStart === ref.selectionEnd) {
|
if (event.code === KEYCODE.C && event.ctrlKey && ref && ref.selectionStart === ref.selectionEnd) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
terminal.print(`[${player.getCurrentServer().hostname} ~${terminal.cwd()}]> ${value}`);
|
||||||
modifyInput("clearall");
|
modifyInput("clearall");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user