Fix nano with enter key as 0x0D (#158)

This commit is contained in:
Terence Boldt 2023-12-04 23:23:59 -05:00 committed by GitHub
parent 5762cdae3e
commit 3840db1a35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"