This commit is contained in:
a 2023-01-15 20:18:08 -06:00
parent 7530d1bf0a
commit 256710ac20
21 changed files with 33 additions and 45 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.idea
.vscode
/darktile
/erm
*.swp

View File

@ -1,41 +0,0 @@
before:
hooks:
- sudo apt install xorg-dev libgl1-mesa-dev
- go mod vendor
builds:
-
id: darktile
main: ./cmd/darktile
binary: darktile
ldflags:
- "-X github.com/liamg/darktile/internal/app/darktile/version.Version={{.Version}}"
env:
- GOFLAGS=-mod=vendor
goos:
- linux
goarch:
- amd64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
-
format: binary
name_template: "{{ .Binary}}-{{ .Os }}-{{ .Arch }}"
release:
prerelease: auto
github:
owner: liamg
name: darktile

View File

@ -1,7 +1,7 @@
darktile: cmd/**/* internal/**/*
go build -o darktile ./cmd/darktile
erm: cmd/**/* app/**/*
go build -o erm ./cmd/erm
clean:
rm darktile

View File

@ -1,3 +1,9 @@
# erm
a fork of Darktile
https://github.com/liamg/darktile
# Darktile
Darktile is a GPU rendered terminal emulator designed for tiling window managers.

View File

@ -5,6 +5,8 @@ import (
"io/ioutil"
"os"
"path"
"sigs.k8s.io/yaml"
)
type Theme struct {

View File

@ -1,6 +1,7 @@
package gui
import (
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/gui/render"
)

View File

@ -7,6 +7,8 @@ import (
"os"
"strings"
"time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/font"
"tuxpa.in/t/erm/app/darktile/gui/popup"
"tuxpa.in/t/erm/app/darktile/hinters"

View File

@ -4,6 +4,7 @@ import (
"fmt"
"github.com/d-tsuji/clipboard"
"github.com/hajimehoshi/ebiten/v2"
)
var modifiableKeys = map[ebiten.Key]uint8{

View File

@ -3,6 +3,8 @@ package gui
import (
"sync"
"time"
"github.com/hajimehoshi/ebiten/v2"
)
var (

View File

@ -1,6 +1,7 @@
package gui
import (
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/termutil"
)

View File

@ -3,6 +3,8 @@ package gui
import (
"fmt"
"time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/hinters"
termutil2 "tuxpa.in/t/erm/app/darktile/termutil"
)

View File

@ -2,6 +2,8 @@ package gui
import (
"image"
"github.com/hajimehoshi/ebiten/v2"
)
type Option func(g *GUI) error

View File

@ -3,6 +3,7 @@ package render
import (
"image/color"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
"github.com/hajimehoshi/ebiten/v2/text"
)

View File

@ -1,6 +1,7 @@
package render
import (
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
"github.com/hajimehoshi/ebiten/v2/text"
"tuxpa.in/t/erm/app/darktile/termutil"

View File

@ -2,6 +2,8 @@ package render
import (
"image"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/font"
"tuxpa.in/t/erm/app/darktile/gui/popup"
termutil2 "tuxpa.in/t/erm/app/darktile/termutil"

View File

@ -1,5 +1,7 @@
package render
import "github.com/hajimehoshi/ebiten/v2"
func (r *Render) drawSixels() {
for _, sixel := range r.buffer.GetVisibleSixels() {
op := &ebiten.DrawImageOptions{}

View File

@ -2,6 +2,8 @@ package gui
import (
"time"
"github.com/hajimehoshi/ebiten/v2"
"tuxpa.in/t/erm/app/darktile/gui/popup"
)

View File

@ -4,6 +4,7 @@ import (
"image"
"math"
"strings"
"tuxpa.in/t/erm/app/darktile/sixel"
)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
demo.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB