News for hackers. Stuff that matters.
Re:The TTY Demystified by joedoe55555 on Wednesday September 19, 2012 @03:25PM (#4545098)
Ok, so how do I build a teletype that I can connect via USB to my Mac? (And will vi work? :D)
Re:The TTY Demystified by johncoltrane on Wednesday September 19, 2012 @03:39PM (#4545167)
Re:The TTY Demystified by jff on Wednesday September 19, 2012 @05:13PM (#4545617)
What's most amazing to me is that this got so much press. Maybe OS X is ridiculously hard to set up, but I've been doing this on and off with my own VT 220 for the last 5 years on Linux. It's just... not that big of a deal. It's not archaeology, it's just pointing getty at /dev/ttyS0.

I've done it with an ADM-3A from the 70s too, it's just. Not. That. Tough.

http://imgur.com/bRnST here's me, years back, hacking on a VT 220

Re:The TTY Demystified by johncoltrane on Thursday September 20, 2012 @03:34AM (#4547498)
I don't think it's implied anywhere that it's hard or novel. He simply is more connected than you, that's all.
Re:The TTY Demystified by derleth on Wednesday September 19, 2012 @05:43PM (#4545726)
On the hardware level, does the VT 220 connect via a standard nine-pin serial port?
Re:The TTY Demystified by kps on Wednesday September 19, 2012 @09:10PM (#4546437)
"standard nine-pin serial port"

Them's fightin' words, boy.

DEC had a DE9 serial port connector whose pinout is not the same as the later IBM PC DE9 serial ports.

Re:The TTY Demystified by jasomill on Wednesday September 19, 2012 @07:27PM (#4546093)
IIRC, while the VT-220 had both 9-pin and 25-pin RS-232 ports, the 9-pin port was used to attach a printer. You also typically need a "null modem" adapter or cable to connect a terminal directly to a PC serial port (or USB serial adapter).

There's lots of original documentation for DEC VT series terminals here[1].

[1] http://www.vt100.net/

Re:The TTY Demystified by jff on Wednesday September 19, 2012 @05:52PM (#4545759)
It has a 25-pin serial port which converts to a 9-pin serial port by a simple passive converter (basically, just ditch 16 of the pins and route the others properly, you can actually do serial with just two wires). Same goes for the ADM-3a
Re:The TTY Demystified by gaius on Thursday September 20, 2012 @07:44AM (#4548016)
Huh, I was using a Wyse terminal on OSX years ago, right now tho' I am using an Atari ST as a terminal (and for 68k dev). Only a hipster would make a big deal about it.
Re:The TTY Demystified by kps on Wednesday September 19, 2012 @03:43PM (#4545190)
You're better off finding an existing ASCII teletype. Then all you need is a USB-to-RS232 interface (FTDI and PL2303 ones work on OS X) and, depending on the machine, an RS232 to 20ma current loop interface, or a modem. Then simply edit /etc/ttys to enable getty on the appropriate interface.

Original vi has what is called 'open mode', which is effectively a one-line window intended for printing terminals. Neither nvi nor vim provide this, but line mode (ex) is more efficient anyway.

Re:The TTY Demystified by jlgreco on Wednesday September 19, 2012 @07:20PM (#4546070)
Hmm. Imagine a "teletype" jury-rigged out of a state of the art laser printer with Vim running on it. You would just have to position yourself or the printer so that every time the screen updated the next sheet of paper would land somewhere convenient.