Abstraction for Cursor Movements (Issue #46)#48
Abstraction for Cursor Movements (Issue #46)#48p-ranav merged 3 commits intop-ranav:masterfrom motis-project:win-cursor-mv
Conversation
|
I was experimenting with the library and it did not work well on Windows with multi-progress bar. Regarding Codacy: I think this is a false positive. It is just a nested preprocessor Edit: I only adjusted the Edit 1: There are more changes because my editor automatically applies clang-format. But since there is a |
|
Hello, I'm interested in this PR. Can you explain the semantics of these two statements? indicators::enable_cursor_movement();
indicators::show_console_cursor(false);If I was a user, why would I need to make these calls? What happens if I don't make these calls? |
|
For our use case we ended up just calling these lines to enable VT100 escape codes on Windows: You might also be interested in these to get the width of the terminal on Win & Unix: And here are the cursor movements: Note: since we could enable ANSI / VT100 escpae codes on Win (works from Win 10) we didn't bother with using the Win APIs for cursor movement. |
I thought that the
|
|
@felixguendling Do you mind updating the other samples too (and probably the README)? We can merge this. |
|
Now, the string "\e[?25" is only used in the |
Try to address #46 in a PoC.