whyrusleeping / gocurses

GO binding for NCurses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

curses.go

GO binding for ncurses.

Sample

package main

import "github.com/tncardoso/gocurses"

func main() {
    gocurses.Initscr()
    defer gocurses.End()
    gocurses.Cbreak()
    gocurses.Noecho()
    gocurses.Stdscr.Keypad(true)
    
    gocurses.Attron(curses.A_BOLD)
    gocurses.Addstr("Hello World!")
    gocurses.Refresh()

    wind := gocurses.NewWindow(10,40,10,10)
    wind.Box(0,0)
    wind.Refresh()
    
    gocurses.Stdscr.Getch()
}

Requirements

Installation

goinstall is now supporting cgo packages, therefore installing gocurses should be as easy as:

$ go get github.com/tncardoso/gocurses

If you have problems with go get, you can update your go release or clone the repository:

$ git clone git://github.com/tncardoso/gocurses.git
$ cd gocurses
$ go install

About

GO binding for NCurses

License:GNU General Public License v3.0


Languages

Language:Go 100.0%