Created
July 18, 2012 00:15
-
-
Save mjf/3133124 to your computer and use it in GitHub Desktop.
ANSI/XTerm control sequences for remind(1)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; ANSI/XTerm control sequences for remind(1) | |
; Copyright (C) 2012 Matous J. Fialka, <http://mjf.cz/> | |
; Released under the terms of The MIT License | |
set bel char(7) | |
set esc char(27) | |
set csi esc + "[" | |
; ANSI attributes | |
set rst csi + "0m" | |
set brt csi + "1m" | |
set und csi + "4m" | |
set blk csi + "5m" | |
set inv csi + "7m" | |
; ANSI foregrounds | |
set fck csi + "30m" | |
set fcr csi + "31m" | |
set fcg csi + "32m" | |
set fcy csi + "33m" | |
set fcb csi + "34m" | |
set fcm csi + "35m" | |
set fcc csi + "36m" | |
set fcw csi + "37m" | |
; ANSI backgrounds | |
set bck csi + "40m" | |
set bcr csi + "41m" | |
set bcg csi + "42m" | |
set bcy csi + "43m" | |
set bcb csi + "44m" | |
set bcm csi + "45m" | |
set bcc csi + "46m" | |
set bcw csi + "47m" | |
; XTerm title beginning and end | |
set xtb esc + "]0;" | |
set xte bel | |
; Examples | |
; msg Next word [und]was[rst] underlined.[bel]% | |
; msg XTerm title set[xtb]test[xte].% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment