Skip to content

stdiopt/mterm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mterm

WIP: mterm implements a virtual terminal

Usage

package main

import "github.com/stdiopt/mterm"


func main() {
    t := mterm.New(24,80)
    fmt.Fprintf(t, "\033[1;33mHello world\033[0m", "World")

    // renders the full 24x80 cells in Ansi
    output := t.GetScreenAsAnsi()

    os.Stdout.Write(output)
}

About

Virtual terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages