aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-19 09:01:42 +0000
committer_ov4 <ov4@ov4.org>2026-10-19 09:01:42 +0000
commitc23e61b4455cee8669c7d594478a4238048f032f (patch)
tree084e9c90a440483797fdf64fb0fc43470d4b9d16 /include
parent83588b7ee9349a941b91294fa83fe6e207883ab6 (diff)
fix vt100 cursor pos race
Diffstat (limited to 'include')
-rw-r--r--include/line/line_editor.h2
-rw-r--r--include/util/prompt.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/line/line_editor.h b/include/line/line_editor.h
index 8fa3841..558bd83 100644
--- a/include/line/line_editor.h
+++ b/include/line/line_editor.h
@@ -63,7 +63,7 @@ public:
// input
void clear_below();
- std::string readline();
+ std::string readline(int prompt_len);
};
} \ No newline at end of file
diff --git a/include/util/prompt.h b/include/util/prompt.h
index a99e933..28ec106 100644
--- a/include/util/prompt.h
+++ b/include/util/prompt.h
@@ -11,7 +11,7 @@ inline constexpr std::string_view prompt_normal = "$";
inline constexpr std::string_view prompt_root = "#";
extern bool emit_prompt;
-void print_prompt();
-std::string get_prompt();
+int print_prompt();
+std::string get_prompt_symbol();
}