Fix RETURN and ENTER key management in TerminalView.

[GB.FORM.TERMINAL]
* BUG: TerminalView: RETURN and ENTER key must send a NL character, not a CR.
This commit is contained in:
gambas 2017-08-25 23:07:01 +02:00
parent c0a7a4aeaa
commit 33be66f655

View file

@ -670,7 +670,7 @@ Public Sub InputTo(hView As TerminalView, hScreen As TerminalScreen, hProcess As
sText = If(hScreen.AppCursorKey, "\eOD", "\e[D")
Case Key.Enter, Key.Return
sText = If(hScreen.NewlineMode, "\r\n", "\r")
sText = If(hScreen.NewlineMode, "\r\n", "\n")
Case Key.Insert
sText = "\e[2~"