Closed brian6932 closed 8 months ago
Since SIGWINCH
doesn't work on Windows. Imo, either a build without rec
, should be made for Windows, or a WINDOW_BUFFER_SIZE_EVENT
way of getting the info should be added.
Patch file for anyone wanting to build on Windows:
diff --git a/cmd/termsvg/main.go b/cmd/termsvg/main.go
index 9a60539..1a30b21 100644
--- a/cmd/termsvg/main.go
+++ b/cmd/termsvg/main.go
@@ -7,7 +7,6 @@ import (
"github.com/alecthomas/kong"
"github.com/mrmarble/termsvg/cmd/termsvg/export"
"github.com/mrmarble/termsvg/cmd/termsvg/play"
- "github.com/mrmarble/termsvg/cmd/termsvg/rec"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
)
@@ -46,13 +45,12 @@ func main() {
Version VersionFlag `name:"version" help:"Print version information and quit"`
Play play.Cmd `cmd:"" help:"Play a recording."`
- Rec rec.Cmd `cmd:"" help:"Record a terminal sesion."`
Export export.Cmd `cmd:"" help:"Export asciicast."`
}
ctx := kong.Parse(&cli,
kong.Name("termsvg"),
- kong.Description("A cli tool for recording terminal sessions"),
+ kong.Description("A cli tool for recording terminal sessions (recording, doesn't currently work on Windows)"),
kong.UsageOnError())
// Call the Run() method of the selected parsed command.
err := ctx.Run(&Context{Debug: cli.Debug})