mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-20 02:57:19 +03:00
Start work on rendering images with Go
This commit is contained in:
parent
24db38ba7e
commit
7f866b2b1f
12
tools/cmd/icat/native.go
Normal file
12
tools/cmd/icat/native.go
Normal file
@ -0,0 +1,12 @@
|
||||
// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
|
||||
|
||||
package icat
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
func render_image_with_go(imgd *image_data, src *opened_input) {
|
||||
}
|
@ -251,6 +251,12 @@ func process_arg(arg input_arg) {
|
||||
send_output(&imgd)
|
||||
return
|
||||
}
|
||||
err = render_image_with_go(imgd, &f)
|
||||
if err != nil {
|
||||
report_error(arg.value, "Could not render image to RGB", err)
|
||||
return
|
||||
}
|
||||
send_output(&imgd)
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user