-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to login to a pty instead of a serial port #8
Comments
There are tools available to do this such as socat. Haven a look it
should be able to connect h19term to a pty.
George
…On Sat, 2022-10-08 at 10:10 -0700, hackerb9 wrote:
Python has a pty (pseudo TTY) library, so it should be possible to
open a shell on the current machine instead of requiring a connection
over a serial port.
For example, I am trying to ascertain if an H19 terminal would work
to connect to a TRS-80 Model 100 to provide a larger screen. The
Model 100's internal screen codes appears to be based on something
like an H19. For example, to position the cursor, one can use "PRINT
CHR$(27)+Y+" ", just like on an H19.
I don't need a serial port to test this, but the h19term program
currently requires one.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
|
Thanks for the tip! That worked. If you want to document how to do it for other people, here's what I did:
After that, you'll be logged into your current host in an H19 terminal. When you logout, h19term and socat will automatically quit. By the way, thank you for creating h19term.py. I haven't used an H19 in a looooong time. |
Thank you.
…On Sun, 2022-10-09 at 21:26 -0700, hackerb9 wrote:
Thanks for the tip! That worked.
If you want to document how to do it for other people, here's what I
did:
1. Edit $HOME/.h19termrc and set[SerialComms]
port = ttyH19
2. Run socat to create a virtual serial port called "ttyH19" in the
current directory:TERM=h19 socat PTY,link=ttyH19,wait-slave
EXEC:bash,pty,ctty,login,stderr,setsid,sigint,sighup,sigquit,sane
&
3. In the same directory, run h19term.py../h19term.py
After that, you'll be logged into your current host in an H19
terminal. When you logout, h19term and socat will automatically quit.
By the way, thank you for creating h19term.py. I haven't used an H19
in a looooong time.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python has a pty (pseudo TTY) library, so it should be possible to open a shell on the current machine instead of requiring a connection over a serial port.
For example, I am trying to ascertain if an H19 terminal would work to connect to a TRS-80 Model 100 to provide a larger screen. The Model 100's internal screen codes appears to be based on something like an H19. For example, to position the cursor, one can use "PRINT CHR$(27)+Y+" ", just like on an H19.
I don't need a serial port to test this, but the h19term program currently requires one.
The text was updated successfully, but these errors were encountered: