Support profile files to customize hterm

This commit is contained in:
Iwasaki Yudai 2015-08-23 22:55:06 +09:00
parent afd40ea15d
commit 45f65bfc29
7 changed files with 78 additions and 7 deletions

View file

@ -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
}