-
survey
Discontinued A golang library for building interactive and accessible prompts with full support for windows and posix terminals.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
cursor
🖱️ Go module to move the terminal cursor in any direction on every operating system. (by atomicgo)
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!
Is goterm any good for you?
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.