1
Watch
6
Star
1
Fork
1
Issue

A toy project like cowsay or ponysay

siddontang
siddontang
pushedAt 3 weeks ago

siddontang/xkcdsay

xkcdsay is a simple application just for fun. Once again, Just for fun.

I like cowsay, ponysay or other similar programs very much, and I also like accessing xkcd to view the comics too. So I build the xkcdsay which can let me view the xkcd comic in the terminal.

All commic data of xkcdsay is downloaded from XKCD and is saved to a TiDB DevTier cluster hosted on TiDB cloud.

You can singup and try TiDB cloud for Free

Limitation

xkcdsay uses Sixel to show the image in the terminal. If you don't know whether your terminal supports Sixel or not, you can refer to Terminal-requirements.

Build from the source

git clone https://github.com/siddontang/xkcdsay.git
cd xkcdsay
make

# the xkcdsay binary will be installed in the current ./bin/xkcdsay

Install with Homebrew

brew install siddontang/brew/xkcdsay

Usage

# Randomly see a comic 
xkcdsay 

image

# See the 1st comic
xkcdsay -n 1

image

TODO - Need help

  • Find a better way to show the image when the Terminal doesn't support Sixel
  • support comic cache for xkcdsay
  • add an ASCII art support like cowsay for the saying words
ucloud ads