WhspBrd/cmd/main.go
foglar 7bde699fc2 Sets up Nix flake for reproducible builds
Adds Nix flake configuration for the project, enabling reproducible builds and dependency management using gomod2nix.
Also removes unused code from main.go.
2025-06-04 07:29:56 +02:00

22 lines
444 B
Go

package main
import (
"fmt"
"whspbrd/pkg/cell_size"
)
func main() {
//render_image.RenderImage("kogami-pf-edit.jpg", 0, 3, 750, 0)
w, h, err := cell_size.GetTerminalCellSizePixels()
if err != nil {
fmt.Println("Error getting terminal cell size:", err)
return
}
width, height := cell_size.GetConsoleSize()
fmt.Println("Terminal cell size in pixels:", w, "x", h)
fmt.Println("Console size in characters:", width, "x", height)
}