How do I move the terminal cursor cross-platform?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

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.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • 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!

  • goterm

    Advanced terminal output in Go

  • Is goterm any good for you?

  • 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.

    InfluxDB logo
  • 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.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • My last weeks GitHub contributions

    8 projects | dev.to | 27 Apr 2024
  • IBM to Acquire HashiCorp, Inc

    5 projects | news.ycombinator.com | 24 Apr 2024
  • The power of the CLI with Golang and Cobra CLI

    9 projects | dev.to | 6 Apr 2024
  • The Gowebly CLI updates to Go 1.22

    1 project | news.ycombinator.com | 7 Feb 2024
  • Essential Command Line Tools for Developers

    29 projects | dev.to | 15 Jan 2024