Advertisement
Canada markets close in 25 minutes
  • S&P/TSX

    21,785.88
    +77.44 (+0.36%)
     
  • S&P 500

    4,963.36
    -47.76 (-0.95%)
     
  • DOW

    37,953.87
    +178.49 (+0.47%)
     
  • CAD/USD

    0.7274
    +0.0011 (+0.15%)
     
  • CRUDE OIL

    83.28
    +0.55 (+0.66%)
     
  • Bitcoin CAD

    88,463.86
    +1,334.12 (+1.53%)
     
  • CMC Crypto 200

    1,383.05
    +70.43 (+5.37%)
     
  • GOLD FUTURES

    2,408.90
    +10.90 (+0.45%)
     
  • RUSSELL 2000

    1,939.73
    -3.23 (-0.17%)
     
  • 10-Yr Bond

    4.6150
    -0.0320 (-0.69%)
     
  • NASDAQ

    15,268.12
    -333.38 (-2.14%)
     
  • VOLATILITY

    18.93
    +0.93 (+5.17%)
     
  • FTSE

    7,895.85
    +18.80 (+0.24%)
     
  • NIKKEI 225

    37,068.35
    -1,011.35 (-2.66%)
     
  • CAD/EUR

    0.6824
    +0.0003 (+0.04%)
     

Google's Tenor slips GIFs into your command line interface

The GIF search platform is giving your terminal a little flair.

If you live in the command line, you probably like to give that otherwise plain interface your own distinctive touch, like ASCII art. But wouldn't it be nice if you could spice it up with a GIF? You can now. Google's Tenor team has released a GIFs for CLI tool that, as the name implies, turns short videos and GIFs (including those sourced from Tenor's search toolkit) into animated ASCII art you can use as a greeting when you open your terminal. The Deadpool 2 skydive you see above is in black and white, but you can include GIFs in glorious color.

The code starts by using ffmpeg to chop the clip into individual JPEG images. It then turns those into ASCII art printed one frame at a time to your console, using ANSI escape sequences to clear the screen and show the GIFs as you'd expect.

Is this extremely nerdy and limited? You bet. The code is sitting in GitHub if you want to tinker with it, though. And look at it this way: when command lines are almost relentlessly drab, flair like this is bound to help.