mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 06:54:58 +02:00
More work on diffing images
This commit is contained in:
@@ -8,33 +8,15 @@ import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"kitty/tools/tui/loop"
|
||||
"kitty/tools/utils"
|
||||
"kitty/tools/utils/shm"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
const TempTemplate = "kitty-tty-graphics-protocol-*"
|
||||
|
||||
func CreateTemp() (*os.File, error) {
|
||||
return os.CreateTemp("", TempTemplate)
|
||||
}
|
||||
|
||||
func CreateTempInRAM() (*os.File, error) {
|
||||
if shm.SHM_DIR != "" {
|
||||
f, err := os.CreateTemp(shm.SHM_DIR, TempTemplate)
|
||||
if err == nil {
|
||||
return f, err
|
||||
}
|
||||
}
|
||||
return CreateTemp()
|
||||
}
|
||||
|
||||
// Enums {{{
|
||||
type GRT_a int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user