Skip to content

An ASCII snake that moves. In telnet. Written in crablang.

License

Notifications You must be signed in to change notification settings

leana8959/hsssss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a bodged-together telnet server that, when you connect to it, shows you a little animation of a snake flicking its tongue.

Features

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.

Usage

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.

Frame file

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.

Credits & stuff used

About

An ASCII snake that moves. In telnet. Written in crablang.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages