added arrow keys to move cursor in terminal

This commit is contained in:
Brazly
2026-02-16 20:20:23 +00:00
parent a7737b10e0
commit 1c9d43a5f7
2 changed files with 87 additions and 20 deletions

View File

@@ -45,6 +45,12 @@ func _input(event: InputEvent) -> void:
KEY_DOWN:
terminal.NavigateHistory(-1)
KEY_LEFT:
terminal.MoveCursorLeft()
KEY_RIGHT:
terminal.MoveCursorRight()
if event.unicode > 31:
var character = char(event.unicode)