-
survey
Discontinued A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
I am looking for a way to move the terminal cursor in different directions. (like Up(n), Left(n), Right(n), etc.) I could do this with ANSI escape codes, but Windows CMD doesn't handle that well. Unfortunately, I can't find a library that runs well on Windows and Linux. Survey does handle that pretty good, for their interactive CLI functions like dropdowns etc. but I don't want to "steal" their code. Also, their implementation is very customized to fit to the project, which makes it hard to isolate the code for moving the cursor. Does anybody know a light way to do this? (I would also happily take a library suggestion!) Thanks in advance!
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Is goterm any good for you?
-
cursor
🖱️ Go module to move the terminal cursor in any direction on every operating system. (by atomicgo)
Hi, thanks for the suggestion. Goterm had some issues when I used it. I made my own library now, which just adds the functionality for cursor movement: https://github.com/atomicgo/cursor I found that go-ansi had some good ANSI to windows syscalls functions which I used now.