Merge pull request #32 from liamg/fix-enter-on-mac

Fix enter on mac
This commit is contained in:
Liam Galvin 2018-10-23 19:56:01 +01:00 committed by GitHub
commit ae5ba2ab37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ func New(config *config.Config, terminal *terminal.Terminal, logger *zap.Sugared
width: 600,
height: 300,
terminal: terminal,
fontScale: 14.0,
fontScale: 15.0,
}
}

View File

@ -186,7 +186,7 @@ func (gui *GUI) key(w *glfw.Window, key glfw.Key, scancode int, action glfw.Acti
'M',
})
} else {
gui.terminal.Write([]byte{0x0a})
gui.terminal.Write([]byte{0x0d})
}
case glfw.KeyBackspace:
gui.terminal.Write([]byte{0x08})