Skip to content

Instantly share code, notes, and snippets.

@TooTallNate
Created April 4, 2012 06:59
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TooTallNate/2299368 to your computer and use it in GitHub Desktop.
Save TooTallNate/2299368 to your computer and use it in GitHub Desktop.
NodeJS script to play ACSII Star Wars (using a hidden cursor)
/**
* A little script to play the ACSII Star Wars, but with a hidden
* cursor, since over telnet the cursor remains visible
*/
var net = require('net')
var cursor = require('ansi')(process.stdout)
// connect to Star Wars server
var socket = net.connect(23, 'towel.blinkenlights.nl')
socket.on('connect', function () {
cursor.hide()
socket.pipe(process.stdout)
})
process.on('SIGINT', function () {
socket.destroy()
})
process.on('exit', function () {
cursor.show().write('\n')
})
@ackvf
Copy link

ackvf commented May 14, 2020

Online version https://repl.it/repls/DefinitiveGeneralNagware


I don't read that fast and I think it's good to have it here anyway.

first screen

      Original Work   : Simon Jansen ( http://www.asciimation.co.nz/ )
      Telnetification : Sten Spans ( http://blinkenlights.nl/ )
      Terminal Tricks : Mike Edwards (pf-asciimation@mirkwood.net)

      The hard work was done by Simon and Mike,
      I just placed it online in a different format.

      So long And Thanks for all the fish

      Sten (I just need a Hug)

second screen

       The IPv6 version has extra scenes and extra color support.
       So if you want to experience ascii starwars to it's fullest
       you really should get IPv6.

       www.sixxs.net or another IPv6 tunnel broker may
       help getting IPv6 to your computer.

       Good Luck,

       Snore ( Has no life for Hardware )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment