Last active
October 12, 2020 16:53
-
-
Save jeroen/572e8f7264dc7c0200a62109842ead4f to your computer and use it in GitHub Desktop.
Terminal movie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run in an R terminal window (not GUI) | |
con <- socketConnection('towel.blinkenlights.nl', 23, open = 'rb') | |
repeat{ | |
buf <- readBin(con, raw(), 10) | |
if(length(buf)) | |
cat(rawToChar(buf)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment