8000 GitHub - jdtournier/terminal_graphics: simple single-file, header-only functionality to render images and plot data to terminal using sixels
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

jdtournier/terminal_graphics

Repository files navigation

Terminal Graphics

A simple header-only function to render images to terminal using the sixel protocol.

Requirements

This should compile using any standard-compliant C++20 compiler, using a command such as:

g++ -std=c++20 demo.cpp -o demo

To work, this requires a sixel-capable terminal, such as:

  • on Linux: wezterm, xterm, mlterm
  • on macOS: wezterm, iTerm2
  • on Windows: wezterm, minTTY, Windows Terminal (preview)

Usage

  • copy the terminal_graphics.h file into your project
  • include the file in the relevant code file
  • add rendering calls to your code
  • run in a sixel-capable terminal (see list above)

See the demo program for example usage. This produces the output shown in the screenshot below.

Demonstration

sixel render in terminal

Documentation

Click here for the doxygen-generated documentation

About

simple single-file, header-only functionality to render images and plot data to terminal using sixels

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0