go-ncurses

A Go wrapper for the ncurses library

Introduction

go-ncurses is a Go package that wraps the ncurses library, enabling developers to access powerful terminal handling functions from Go applications. The library provides a bridge between Go’s simplicity and ncurses’ extensive terminal manipulation capabilities.

The package is available on GitHub and is released under the GPL-3.0 license.

Features

The library provides comprehensive access to ncurses functionality:

Requirements

The library requires ncurses to be installed on your system, including:

On most Linux distributions, install ncurses development packages:

# Debian/Ubuntu
sudo apt-get install libncurses-dev

# Fedora/RHEL
sudo dnf install ncurses-devel

Installation

To install go-ncurses, use:

go get seehuhn.de/go/ncurses

Usage

The package includes six example programs (example1.go through example6.go) demonstrating various usage patterns. These examples provide a good starting point for learning the library.

Full documentation is available on pkg.go.dev or through the command line:

go doc seehuhn.de/go/ncurses

Examples

The repository includes several examples showing:

Documentation

The source code is available on github.com/seehuhn/go-ncurses.

Source Code

View on GitHub: seehuhn/go-ncurses