Apple2-IO-RPi/RaspberryPi/apple2driver
Oliver Schmidt 7b3c5a13c3 Fix shell shutdown (?)
At least on the alternative hardware, things happen this way:
1. The shell 'exit' command has ptyOut signal outputComplete and terminate. At this point, ptyIn is still blocked up to one second in ReadCharacter - and can therefore not react on outputComplete.
2. The outputComplete handler in ShellCommand sends a zero byte. This makes on the A2 DumpOutput return and the caller send a zero byte. ShellCommand must not return here as ptyIn is still blocked.
3. The zero byte from the A2 has ptyIn return from ReadCharacter, signal userCancelled and terminate.
4. ShellCommand can now return, but it must not send a zero byte, as the A2 is not expecting it - and will therefore later misinterpret it.

Maybe the original hardware needs another handling, then differentiation of behavior in shell.go becomes necessary.
2024-02-04 21:45:24 -05:00
..
a2io Adapt to the different error signatures on Linux. 2024-02-04 21:45:24 -05:00
handlers Fix shell shutdown (?) 2024-02-04 21:45:24 -05:00
info Add error handling 2022-04-27 22:36:27 -04:00
driver.go Added another comminucation interface implementation. 2024-02-04 21:45:24 -05:00
go.mod Added another comminucation interface implementation. 2024-02-04 21:45:24 -05:00
go.sum Add error handling 2022-04-27 22:36:27 -04:00