Implemented console input field.

This commit is contained in:
Jakob Friedl
2025-09-16 20:17:48 +02:00
parent ce417db941
commit ee397c4fb5
3 changed files with 112 additions and 74 deletions

View File

@@ -73,10 +73,14 @@ type
# LOG_ERROR = "[ - ] "
# LOG_SUCCESS = "[ + ] "
# LOG_WARNING = "[ ! ] "
# LOG_COMMAND = "[ > ] "
# LOG_OUTPUT = ""
LOG_INFO = "[INFO] "
LOG_ERROR = "[FAIL] "
LOG_SUCCESS = "[DONE] "
LOG_WARNING = "[WARN] "
LOG_COMMAND = "[>>>>] "
LOG_OUTPUT = ""
SleepObfuscationTechnique* = enum
NONE = 0'u8
@@ -233,3 +237,13 @@ type
arguments*: seq[Argument]
dispatchMessage*: string
execute*: proc(config: AgentCtx, task: Task): TaskResult {.nimcall.}
# Definitions for ImGui User interface
type
ConsoleItem* = ref object
timestamp*: DateTime
itemType*: LogType
text*: string
ConsoleItems* = ref object
items*: seq[ConsoleItem]