Skip to content

repos-go/curses

 
 

Repository files navigation

curses.go

GO binding for ncurses.

Sample

package main

import "github.com/tncardoso/curses.go"

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

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

Requirements

Installation

goinstall is now supporting cgo packages, therefore installing curses.go should be as easy as:

$ goinstall github.com/tncardoso/curses.go

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

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

Releases

No releases published

Packages

No packages published

Languages

  • Go 96.0%
  • C 4.0%