mirror of
https://github.com/yudai/gotty.git
synced 2026-01-27 11:46:11 +01:00
Support profile files to customize hterm
This commit is contained in:
parent
afd40ea15d
commit
45f65bfc29
7 changed files with 78 additions and 7 deletions
|
|
@ -30,6 +30,7 @@ const (
|
|||
const (
|
||||
Output = '0'
|
||||
SetWindowTitle = '1'
|
||||
SetPreferences = '2'
|
||||
)
|
||||
|
||||
type argResizeTerminal struct {
|
||||
|
|
@ -114,6 +115,15 @@ func (context *clientContext) sendInitialize() error {
|
|||
}
|
||||
writer.Close()
|
||||
|
||||
prefs, _ := json.Marshal(context.app.preferences)
|
||||
writer, err = context.connection.NextWriter(websocket.TextMessage)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
writer.Write([]byte{SetPreferences})
|
||||
writer.Write(prefs)
|
||||
writer.Close()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue