Skip to content

Instantly share code, notes, and snippets.

@rHermes
rHermes / TrueColour.md
Created May 27, 2020 09:17 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@rHermes
rHermes / 2015-day4.cpp
Created November 15, 2021 21:55
Doing advent of code 2015 day 4 with https://github.com/intel/isa-l_crypto to try t oget it as fast as possibe
#include <string_view>
#include <cstdio>
#include <cstdlib>
#include <fmt/core.h>
#include <fmt/format.h>
#include <md5_mb.h>
#include <endian_helper.h>