Skip to content

Instantly share code, notes, and snippets.

View robertpd's full-sized avatar
🧩

robertpd

🧩
View GitHub Profile
@robertpd
robertpd / TrueColour.md
Created March 14, 2017 14:14 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Colours in terminal

It's a common confusion about terminal colours... Actually we have this:

  • plain ascii
  • ansi escape codes (16 colour codes with bold/italic and background)
  • 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
  • 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
#!/bin/bash
### BEGIN INIT INFO
# Provides: wpa
# Required-Start: $network $syslog $local_fs
# Required-Stop: $network $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop script for wpa supplicant
# Description: Custom start/stop script for wpa_supplicant.
### END INIT INFO

Keybase proof

I hereby claim:

  • I am robertpd on github.
  • I am robertd (https://keybase.io/robertd) on keybase.
  • I have a public key whose fingerprint is 75D0 91DD FF5C E68A D3E6 B06A E7CC 946E F399 111E

To claim this, I am signing this object: