Dispatches from the intrepid tinkerers behind technology at Tumblr.
    • The Team
    • 61cygni
      61 Cygni
    • david
      David's Log
    • derekg
      Derek Gottfrid
    • evan
      Fluff Overflow
    • matthew
      Matt Hackett
    • mobocracy
      Blake Matheny
    • nylandr
      nylandr
    • strle
      Strle
    • andrew
      andrew.tumblr.com
    • bennett
      Bennett
    • buzz
      Buzz Andersen
    • captphunkosis
      Capt Phunkosis
    • codingjester
      /geek
    • dallas
      dallas marlow
    • dorkmatt
      dorkytum
    • haseman
      small screens
    • jstn
      JSTN
    • michael
      Michael Schenck
    • pauwow
      pau
    • radioon
      RADIO_ON
  • This is a VT220 serial console (circa 1983) set up as a terminal for my Mac Pro (circa 2010), a nerdy dream I’ve had for a long time that I finally made a reality yesterday.
Some quick history: in the early days of office computers, it was rare that you would actually have one on your desk.  Instead there might be a central mainframe (running Unix) and everyone would have a terminal that connected to it over a long serial cable or modem connection. One computer, many users.
The terminal has a keyboard and monitor, but it’s not a full computer and worthless without the mainframe.  It’s more like a teletype machine, all it can do is display the text sent to it (like a paperless printer) and send text back.  It doesn’t have any knowledge of pixels or colors or graphics of any kind.
In modern times we don’t have mainframes anymore, but Unix is more prevalent than ever.  It runs on the servers delivering this page and the iPhone in your pocket. For developers and power users the command line has never gone away, but instead of a dedicated hardware serial console we have Terminal.app (with translucent backgrounds and anti-aliased fonts).  The software is just emulating the old hardware, though.  The protocols haven’t changed much in 30 years.  The Unix underpinnings of OS X still have all the stuff required to use a real serial terminal, it’s just no one actually does it (well, almost no one).
I’ve always thought those old terminals were beautiful, and I’m not the only one—there’s a Mac app called Cathode that does a convincingly wonderful job simulating vintage terminals, using OpenGL to degrade things into a nice analog haze.  But it’s not quite the same as the real thing…
Hardware terminals regularly crop up on eBay for around $100.  They’re actually still used in a lot of places (old warehouse systems, supermarkets, banks) and there are still companies that support and refurbish them.  Back at Vimeo we discovered one abandoned in a server closet when we moved into the office.  Finding one isn’t a problem, the main challenge is stringing together the right adapters to use an ancient serial port with modern USB.
My biggest source of information getting this going was Paul Weinstein’s post about setting up an Apple IIc as a terminal for his Mac mini (which is similar, but not quite the same since the IIc still has to emulate the terminal in software).  I got the same USB-to-serial adapter, a Keyspan USA-19HS ($27), which has Mac drivers that I can happily confirm work well with 10.7 Lion.  I also needed a null modem cable ($7) and 25-pin female/female converter ($4) to connect it to my VT220.
At first I used the same method as Paul to get it working, gluing together the terminal and OS with a utility called screen.  As Paul notes, this is less than desirable.  It still requires you to open a software terminal to make the connection, and you’re still operating through a layer of emulation.  On most Unixes you can simply add a line to /etc/ttys and everything just works via getty, but apparently this has been disabled in OS X since 10.5.
Eventually I found this page, which explains the problem and how to fix it.  After adding a line in /etc/gettytab to manually set the terminal type to vt220-8bit everything works perfectly!  A real hardware terminal directly connected the old fashioned way, with no emulation.  Awesome.
If this is something you want to attempt yourself please drop me a line; I learned a lot about how terminals work over the last couple weeks and the final result is quite satisfying, a soft amber glow and one less window on my desktop.  It’s also a nice reminder that we didn’t get to where we are overnight, user interfaces and software development have been evolving in an unbroken chain for a long time and some of the old ideas are so solid that they persist 30 years later. Why not use the proper hardware?
    Neu! veranstaltung Blogs Templates User

    This is a VT220 serial console (circa 1983) set up as a terminal for my Mac Pro (circa 2010), a nerdy dream I’ve had for a long time that I finally made a reality yesterday.

    Some quick history: in the early days of office computers, it was rare that you would actually have one on your desk. Instead there might be a central mainframe (running Unix) and everyone would have a terminal that connected to it over a long serial cable or modem connection. One computer, many users.

    The terminal has a keyboard and monitor, but it’s not a full computer and worthless without the mainframe. It’s more like a teletype machine, all it can do is display the text sent to it (like a paperless printer) and send text back. It doesn’t have any knowledge of pixels or colors or graphics of any kind.

    In modern times we don’t have mainframes anymore, but Unix is more prevalent than ever. It runs on the servers delivering this page and the iPhone in your pocket. For developers and power users the command line has never gone away, but instead of a dedicated hardware serial console we have Terminal.app (with translucent backgrounds and anti-aliased fonts). The software is just emulating the old hardware, though. The protocols haven’t changed much in 30 years. The Unix underpinnings of OS X still have all the stuff required to use a real serial terminal, it’s just no one actually does it (well, almost no one).

    I’ve always thought those old terminals were beautiful, and I’m not the only one—there’s a Mac app called Cathode that does a convincingly wonderful job simulating vintage terminals, using OpenGL to degrade things into a nice analog haze. But it’s not quite the same as the real thing…

    Hardware terminals regularly crop up on eBay for around $100. They’re actually still used in a lot of places (old warehouse systems, supermarkets, banks) and there are still companies that support and refurbish them. Back at Vimeo we discovered one abandoned in a server closet when we moved into the office. Finding one isn’t a problem, the main challenge is stringing together the right adapters to use an ancient serial port with modern USB.

    My biggest source of information getting this going was Paul Weinstein’s post about setting up an Apple IIc as a terminal for his Mac mini (which is similar, but not quite the same since the IIc still has to emulate the terminal in software). I got the same USB-to-serial adapter, a Keyspan USA-19HS ($27), which has Mac drivers that I can happily confirm work well with 10.7 Lion. I also needed a null modem cable ($7) and 25-pin female/female converter ($4) to connect it to my VT220.

    At first I used the same method as Paul to get it working, gluing together the terminal and OS with a utility called screen. As Paul notes, this is less than desirable. It still requires you to open a software terminal to make the connection, and you’re still operating through a layer of emulation. On most Unixes you can simply add a line to /etc/ttys and everything just works via getty, but apparently this has been disabled in OS X since 10.5.

    Eventually I found this page, which explains the problem and how to fix it. After adding a line in /etc/gettytab to manually set the terminal type to vt220-8bit everything works perfectly! A real hardware terminal directly connected the old fashioned way, with no emulation. Awesome.

    If this is something you want to attempt yourself please drop me a line; I learned a lot about how terminals work over the last couple weeks and the final result is quite satisfying, a soft amber glow and one less window on my desktop. It’s also a nice reminder that we didn’t get to where we are overnight, user interfaces and software development have been evolving in an unbroken chain for a long time and some of the old ideas are so solid that they persist 30 years later. Why not use the proper hardware?

    (Source: jstn)

    jstn
    JSTN
    936 notes
    Aug 10, 2011
    1. carcharodon-megalodon reblogged this from engineering
    2. mauvaisehaleine reblogged this from engineering
    3. donatj liked this
    4. handjobsfreecelebs liked this
    5. maquillaje-artistico reblogged this from engineering
    6. gilda-op-wirt448 reblogged this from engineering
    7. assunta-62-terre988 reblogged this from handsomecode
    8. maximilianofmexico liked this
    9. jordan-vd-pickrel818 reblogged this from engineering
    10. vernie-nq-mckernan371 reblogged this from handsomecode
    11. konni liked this
    12. wiiarebrothers liked this
    13. frankjath liked this
    14. frankjath reblogged this from joshuatopolsky
    15. xnt14 liked this
    16. mmtki reblogged this from toqoz
    17. customized-essays reblogged this from joshuatopolsky
    18. plainflavored liked this
    19. xenogenesis reblogged this from jstn
    20. nicolasgomez liked this
    21. nicolasgomez reblogged this from jstn
    22. rain-dear reblogged this from jstn
    23. yourpalmal liked this
    24. modern-unconscious reblogged this from jstn
    25. worthlesslyworthy reblogged this from engineering
    26. gunlukdaire reblogged this from engineering
    27. gunlukdaire liked this
    28. a4-white-card reblogged this from engineering
    29. earthian reblogged this from jstn
    30. cemk reblogged this from jstn
    31. sillyidea reblogged this from jstn
    32. beret liked this
    33. c4jones2 liked this
    34. creamynebula liked this
    35. ecdoesit liked this
    36. hellyeahhellyeahs liked this
    37. hellyeahhellyeahs reblogged this from jstn
    38. robots liked this
    39. gleuch liked this
    40. ilterzouomo reblogged this from jstn
    41. tavishtimothy liked this
    42. finalcrisis reblogged this from jstn
    43. feelingsofrobots liked this
    44. jonic liked this
    45. jtt liked this
    46. jtt reblogged this from jstn
    47. custom-papers reblogged this from billwesterman
    48. 200 liked this
    49. chrizesu liked this
    50. a-gressr liked this
    51. Show more notesLoading...
  • © 2008–2011 All rights reserved.
    TUMBLR is a registered trademark of Tumblr, Inc.