We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 943d79b commit 6e43802Copy full SHA for 6e43802
include/Termin8or/screen/ScreenCommandsBasic.h
@@ -105,6 +105,17 @@ namespace t8
105
#endif
106
}
107
108
+ std::string get_gotorc_str(int r, int c)
109
+ {
110
+#ifdef _WIN32
111
+ // Windows doesn't use ANSI escape codes for cursor movement.
112
+ return "";
113
+#else
114
+ // ANSI escape code for cursor positioning (1-indexed)
115
+ return "\033[" + std::to_string(r + 1) + ";" + std::to_string(c + 1) + "H";
116
+#endif
117
+ }
118
+
119
std::pair<int, int> get_terminal_window_size()
120
{
121
int rows = 0;
0 commit comments