autocompletar amb armadura de lagarto

This commit is contained in:
2026-03-30 22:50:56 +02:00
parent 8f191f02fa
commit 8dcf473f31
2 changed files with 61 additions and 17 deletions

View File

@@ -49,7 +49,7 @@ class Console {
// Constantes de consola
static constexpr std::string_view CONSOLE_NAME = "JDD Console";
static constexpr std::string_view CONSOLE_VERSION = "v2.0";
static constexpr std::string_view CONSOLE_VERSION = "v2.1";
static constexpr int MAX_LINE_CHARS = 32;
static constexpr int MAX_HISTORY_SIZE = 20;
static constexpr float CURSOR_ON_TIME = 0.5F;
@@ -101,5 +101,4 @@ class Console {
// Estado de autocompletado (TAB)
std::vector<std::string> tab_matches_; // Comandos que coinciden con el prefijo actual
int tab_index_{-1}; // Índice actual en tab_matches_
std::string tab_prefix_; // Prefijo usado en la última búsqueda TAB
};