Skip to content

Instantly share code, notes, and snippets.

@fathergoose
Created June 3, 2016 11:58
Show Gist options
  • Save fathergoose/f15a891c8f12cf1a9b3c3f63089c8d1a to your computer and use it in GitHub Desktop.
Save fathergoose/f15a891c8f12cf1a9b3c3f63089c8d1a to your computer and use it in GitHub Desktop.
#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?
@fathergoose
Copy link
Author

Notes on terminal taming with Ruby

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