sQLux serial and pty
Posted: Thu May 18, 2023 7:55 pm
My AH QL is still out of action so I'm looking at emulators and trying the following to see if sQLux can use a pty as a serial port. I wondered whether anyone looking at the below knows right off if something I am doing is wrong or why.
I start sQLux on Ubuntu with (say):
And then run socat to create and interact with a pty:
If I run and start typing in the pty - I get only every other line appearing in scr.
I have also tried removing rawer, various termios options (such as opost/onlcr, ocrnl, ...), etc.
I'm assuming the issue isn't at the sQLux end and it works well with real serial ports. If it were a flow control issue I would expect it to work better if typing slowly and each line were a single character, a <enter> s <enter> d <enter> f <enter> and so on - but this also only displays a ... d ... every other line.
Anyone seen anything similar I wonder? Thoughts greatly appreciated as always.
I start sQLux on Ubuntu with (say):
Code: Select all
sqlux --SER1 pty --RAMSIZE 128 --ROMDIR ..... --WIN_SIZE 2x
Code: Select all
socat -d -d -v - pty,rawer,link=pty
Code: Select all
copy ser1 to scr
I have also tried removing rawer, various termios options (such as opost/onlcr, ocrnl, ...), etc.
I'm assuming the issue isn't at the sQLux end and it works well with real serial ports. If it were a flow control issue I would expect it to work better if typing slowly and each line were a single character, a <enter> s <enter> d <enter> f <enter> and so on - but this also only displays a ... d ... every other line.
Anyone seen anything similar I wonder? Thoughts greatly appreciated as always.