mirror of
https://github.com/yudai/gotty.git
synced 2026-02-16 21:28:05 +01:00
Handle hterm preferences with better care
This commit is contained in:
parent
86151f1ac9
commit
589ec6b50a
89 changed files with 1396 additions and 742 deletions
|
|
@ -23,8 +23,8 @@ import (
|
|||
"github.com/braintree/manners"
|
||||
"github.com/elazarl/go-bindata-assetfs"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/hashicorp/hcl"
|
||||
"github.com/kr/pty"
|
||||
"github.com/yudai/hcl"
|
||||
"github.com/yudai/umutex"
|
||||
)
|
||||
|
||||
|
|
@ -64,7 +64,8 @@ type Options struct {
|
|||
ReconnectTime int `hcl:"reconnect_time"`
|
||||
Once bool `hcl:"once"`
|
||||
PermitArguments bool `hcl:"permit_arguments"`
|
||||
Preferences map[string]interface{} `hcl:"preferences"`
|
||||
Preferences HtermPrefernces `hcl:"preferences"`
|
||||
RawPreferences map[string]interface{} `hcl:"preferences"`
|
||||
}
|
||||
|
||||
var Version = "0.0.11"
|
||||
|
|
@ -87,7 +88,7 @@ var DefaultOptions = Options{
|
|||
EnableReconnect: false,
|
||||
ReconnectTime: 10,
|
||||
Once: false,
|
||||
Preferences: make(map[string]interface{}),
|
||||
Preferences: HtermPrefernces{},
|
||||
}
|
||||
|
||||
func New(command []string, options *Options) (*App, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue