This is a bodged-together telnet
server that, when you connect to it, shows you a little animation of a snake flicking its tongue.
Center the animation when the client-side's window dimension changes.
Note: It doesn't actually support any telnet protocal exchange beside window dimension negotiation (IAC DO NAWS
sequence). I simply made it reject any protocol request to keep the client responded while having the connection going. The IAC DO TIMING MARK
sequence, which happens to be triggered by ^C, is overloaded with the ability to close the connection.
hsssss --path [your_frame_file] --addr [address_to_bind_to]
Note: You may need to use sudo
to run this program, as telnet
binds to port 23.
Simply do
telnet [machine_that_runs_hsssss]
to connect to this telnet
server. Use ^C
to quit.
For modularity, I decided that a frame file is a text file that contains some ASCII artwork, where each frame is separated by a >\n
(a >
and then a new line character).
Any other file of the same format should work just fine.
- GrizzlT for the help with
tokio
- Hykilpikonna for the idea
- telnetlib
- RFC 854