How do I move the terminal cursor cross-platform?

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

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

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. goterm

    Advanced terminal output in Go

    Is goterm any good for you?

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

  • Show HN: I built open source file sharing solution using AWS S3

    3 projects | news.ycombinator.com | 30 Dec 2024
  • Wormhole William: End-to-end encrypted large file transfer in Golang

    1 project | news.ycombinator.com | 27 Aug 2024
  • Developing CLIs

    3 projects | dev.to | 12 Aug 2024
  • 🎉 Finally! Official launch of the Gowebly project on ProductHunt

    2 projects | dev.to | 19 Jul 2024
  • Ask HN: Is there any software you only made for your own use but nobody else?

    65 projects | news.ycombinator.com | 4 Jul 2024