mirror of
https://github.com/1f349/voidterm.git
synced 2024-11-12 23:11:36 +00:00
28 lines
476 B
Go
28 lines
476 B
Go
package voidterm
|
|
|
|
import (
|
|
"os"
|
|
"sync"
|
|
)
|
|
|
|
const (
|
|
MainBuffer uint8 = 0
|
|
AltBuffer uint8 = 1
|
|
InternalBuffer uint8 = 2
|
|
)
|
|
|
|
type VoidTerm struct {
|
|
mu sync.Mutex
|
|
pty *os.File
|
|
updateChan chan struct{}
|
|
processChan chan MeasuredRune
|
|
closeChan chan struct{}
|
|
buffers []*Buffer
|
|
activeBuffer *Buffer
|
|
mouseMode MouseMode
|
|
mouseExtMode MouseExtMode
|
|
running bool
|
|
shell string
|
|
initialCommand string
|
|
}
|