xieite ::term ::mv_cursor_code ()
Defined in header <xieite/io/term.hpp>
Moves the cursor by some offset.
Declaration
#0[[nodiscard ]]static constexpr std ::string mv_cursor_code (xieite ::ssize_t row ,xieite ::ssize_t col )noexcept ;
#1
[[nodiscard ]]static constexpr std ::string mv_cursor_code (xieite ::pos diff )noexcept ;
Example
Possible output:int main () {for (char c :std ::string_view ("Hello, world!" )) {std ::" ,{}{} "c ,xieite ::term ::mv_cursor_code (1 ,0 )); } }
H e l l o , w o r l d !