Archived
1
0
This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
Gastenboek/menu.go
2013-10-10 12:20:11 +02:00

30 lines
514 B
Go

package gastenboek
import (
"fmt"
"log"
"os"
"os/exec"
)
func terminalSize() (width, height int) {
cmd := exec.Command("stty", "size")
cmd.Stdin = os.Stdin
out, err := cmd.Output()
fmt.Printf("out: %#v\n", string(out))
fmt.Printf("err: %#v\n", err)
if err != nil {
log.Fatal(err)
}
return 0, 0
}
func showMenu() {
cmd := exec.Command("echo", "Thalia Constitutieborrel Gastenboek\n Optie 1 1: Optie 2 2:")
err := cmd.Run()
if err != nil {
fmt.Printf("There has been an error: %s ", err)
}
}