Created
June 3, 2016 11:58
-
-
Save fathergoose/f15a891c8f12cf1a9b3c3f63089c8d1a to your computer and use it in GitHub Desktop.
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
#print skull and crossbones using UTF-8 | |
echo -e "\xE2\x98\xA0" | |
# in one terminal | |
$ nc -l 1234 | |
# then in irb | |
```ruby | |
require 'socket' | |
s = TCPSocket.new 'localhost', 1234 | |
s.write "Hello Terminal" | |
``` | |
# Ruby is sending ascii bytes to my terminal? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes on terminal taming with Ruby