mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-12-22 02:30:12 +00:00
Fix nano with enter key as 0x0D (#158)
This commit is contained in:
parent
5762cdae3e
commit
3840db1a35
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -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)
|
||||
|
@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user