Fix nano with enter key as 0x0D

This commit is contained in:
Terence Boldt 2023-12-04 23:15:52 -05:00
parent bde5767314
commit 863a2fcb77
3 changed files with 4 additions and 3 deletions

View File

@ -49,6 +49,7 @@ body:
label: Driver Version
description: What version of the driver are you running? Check with `RPI a2version`
options:
- 002C (fix nano editor)
- 002B (fix keyboard delay)
- 002A (reduce CPU usage)
- 0029 (fix hang after shell exit)

View File

@ -234,7 +234,7 @@ func readCharacter(comm A2Io) (string, error) {
case 0x08: // left
s = "\033OD"
case 0x0d: // return
s = string(byte(0x0a))
s = string(byte(0x0d))
}
} else {
switch b {
@ -247,7 +247,7 @@ func readCharacter(comm A2Io) (string, error) {
case 0x08: // left
s = "\033[D"
case 0x0d: // return
s = string(byte(0x0a))
s = string(byte(0x0d))
}
}
}

View File

@ -8,4 +8,4 @@ package info
// Version is the hexadecimal version number that
// should be incremented with each driver update
const Version = "002B"
const Version = "002C"