More work on ImageMagick

This commit is contained in:
Kovid Goyal
2023-01-03 21:14:29 +05:30
parent 4d21be9eb5
commit c317c934f3
7 changed files with 442 additions and 43 deletions

View File

@@ -19,13 +19,15 @@ import (
var _ = fmt.Print
const TempTemplate = "kitty-tty-graphics-protocol-*"
func CreateTemp() (*os.File, error) {
return os.CreateTemp("", "tty-graphics-protocol-*")
return os.CreateTemp("", TempTemplate)
}
func CreateTempInRAM() (*os.File, error) {
if shm.SHM_DIR != "" {
f, err := os.CreateTemp(shm.SHM_DIR, "tty-graphics-protocol-*")
f, err := os.CreateTemp(shm.SHM_DIR, TempTemplate)
if err == nil {
return f, err
}