Skip to content
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

Alternative mechanism for shell wrapper? #30

Open
gtoal opened this issue Nov 22, 2022 · 1 comment
Open

Alternative mechanism for shell wrapper? #30

gtoal opened this issue Nov 22, 2022 · 1 comment

Comments

@gtoal
Copy link

gtoal commented Nov 22, 2022

In your Readme you write "The emulator does use "rsh" or "telnet", because historical Unix systems do not support the secure ssh protocol, and because ssh does not allow using a virtual emulator such as tek4010 for security reasons."

I appreciate that it would be a significant restructuring, but have you considered wrapping the Tektronix input and output filtering around code based on the unix 'script' command instead? 'script' without the logging (or even if you keep the logging for debugging purposes) gives you a very accessible place to intercept keyboard input and tty output - and all linux commands work as normal within 'script', so there would be no need to prohibit the use of ssh for connections to some other system that may be generating Tektronix-like output.

Script for debian linux (which compiles easily on the Raspberry Pi for example) can be found at:
wget http://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.38/util-linux-2.38.tar.gz

  • just ./configure, and "make script"...

(I've been doing something similar to enable a linux shell to use a Vectrex vector display, so I know this can work)

The only downside of this approach is that it is only as portable as the version of 'script' that you base it on, so it may be more appropriate as an addition to the existing mechanism rather than a replacement for it as I doubt it would work under windows or BSD.

regards,

Graham Toal gtoal@gtoal.com

@rricharz
Copy link
Owner

rricharz commented Feb 2, 2024

tek4010 can wrap any linux application. Not just telnet and rsh, as long as the application does not prohibit it for security reasons. You seem to have experience with script. I suggest that you just try it. with a simple example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants