Started porting over command input & task output to the ImGui client.

This commit is contained in:
Jakob Friedl
2025-09-27 17:45:52 +02:00
parent 5472019d78
commit 13a245ebf2
8 changed files with 37 additions and 44 deletions

View File

@@ -3,6 +3,7 @@ import strformat, strutils, times
import imguin/[cimgui, glfw_opengl, simple]
import ../utils/[appImGui, colors]
import ../../common/[types]
import ../websocket
const MAX_INPUT_LENGTH = 512
type
@@ -270,6 +271,7 @@ proc draw*(component: ConsoleComponent, ws: WebSocket) =
component.addItem(LOG_COMMAND, command)
# Send command to team server
ws.sendAgentCommand(component.agent.agentId, command)
# Add command to console history
component.history.add(command)