Skip to content

tncardoso/gocurses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(gocurses.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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages