I recently was enlightened to Powerlines, the cool terminal thing that looks really cool.
But, me being me I wanted to know how this thing worked, but nobody has wrote anything and I've found out.
Basically the "patched fonts" just add some symbols like arrows and git icons so they render in your terminal properly.
By Powerline, I mean this thing:
It's rather clever, but it's actually a very simple trick. One of the symbols is just a arrow which is the full height of the line, which means with some NodeJS we can replicate it:
var ansi = require("ansi");
var cursor = ansi(process.stdout);
cursor.white().bg.green().write(" Hello World ");
cursor.green().bg.blue().write("\ue0b0"); // this is the arrow symbol
cursor.white().write(" POWERLINE ");
cursor.blue().bg.reset().write("\ue0b0");
cursor.reset().write("\n");
This will look like so: