shithub: neatroff

Download patch

ref: b24186753c9416fae0fd8d45c6bef89e6d88dada
parent: 992cedf99122a3d1bbfa293d99c4abca103ec693
author: Ali Gholami Rudi <ali@rudi.ir>
date: Mon Jul 8 15:25:56 EDT 2013

reg: \n(.m is current color as a string #rrggbb

--- a/reg.c
+++ b/reg.c
@@ -68,6 +68,9 @@
 	case REG('.', 'k'):
 		sprintf(numbuf, "%d", f_hpos());
 		break;
+	case REG('.', 'm'):
+		sprintf(numbuf, "#%02x%02x%02x", CLR_R(n_m), CLR_G(n_m), CLR_B(n_m));
+		break;
 	case REG('.', 't'):
 		sprintf(numbuf, "%d", f_nexttrap());
 		break;