copy / v86

x86 PC emulator and x86-to-wasm JIT, running in the browser
https://copy.sh/v86/
BSD 2-Clause "Simplified" License
19.63k stars 1.37k forks source link

DOS dialup terminal to websocket gateway #138

Open tracker1 opened 7 years ago

tracker1 commented 7 years ago

Just curious if anyone has any tips if I wanted to do FreeDOS with an old dos dialup terminal program and use a websocket gateway to a telnet or similar endpoint.

Specifically thinking RIPTerm 1.54, and a color ANSI terminal.

copy commented 7 years ago

This is technically possible, basically have a look at https://github.com/copy/v86/blob/master/src/browser/serial.js

This function handles interaction between a serial console and a <textarea> element, you basically need to replace the <textarea> stuff with websocket calls.

Alternatively, if you find an ne2k driver for FreeDOS, you could use the normal network stack. The backend we're currently using is https://github.com/benjamincburns/websockproxy.

cgorringe commented 7 years ago

I had this same idea. I'd like to run some old BBS software in DOSBox/FreeDOS on a server, using a websocket gateway to RIPTerm 1.54 running from the browser.

jfmherokiller commented 6 years ago

if there is any interest in this still remaining you might want to try looking at this https://en.wikipedia.org/wiki/Hayes_command_set its the general standard for modems.

An example implementation can be seen here https://github.com/nandhp/atduck

tracker1 commented 2 years ago

@jfmherokiller I'm definitely still interrested, just totally lost track and hadn't looked in a while... I don't think I really need the full hayes support, as I should be able to ignore any AT* other than ATDT * where * is host:port ... and even then, I can probably ignore that if I can activate the terminal in a connected mode.