fix enter on mac

This commit is contained in:
Liam Galvin 2018-10-23 19:55:19 +01:00
parent 4a8a2226e7
commit fefb675194
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, width: 600,
height: 300, height: 300,
terminal: terminal, 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', 'M',
}) })
} else { } else {
gui.terminal.Write([]byte{0x0a}) gui.terminal.Write([]byte{0x0d})
} }
case glfw.KeyBackspace: case glfw.KeyBackspace:
gui.terminal.Write([]byte{0x08}) gui.terminal.Write([]byte{0x08})