mirror of
https://github.com/troglobit/libite.git
synced 2026-10-31 12:50:41 +00:00
Minor whitespace fixes, use Linux KNF
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
3809b109c6
commit
aff5812c46
1 file changed
+7
-6
@@ -62,11 +62,11 @@
|
|||||||
#define showcursor() fputs ("\e[?25h", stdout)
|
#define showcursor() fputs ("\e[?25h", stdout)
|
||||||
|
|
||||||
/* Esc[Value;...;Valuem - Set Graphics Mode */
|
/* Esc[Value;...;Valuem - Set Graphics Mode */
|
||||||
#define __set_gm(attr,color,val) \
|
#define __set_gm(attr,color,val) \
|
||||||
if (!color) \
|
if (!color) \
|
||||||
printf("\e[%dm", attr); \
|
printf("\e[%dm", attr); \
|
||||||
else \
|
else \
|
||||||
printf("\e[%d;%dm", color & 0x10 ? 1 : 0, (color & 0xF) + val)
|
printf("\e[%d;%dm", color & 0x10 ? 1 : 0, (color & 0xF) + val)
|
||||||
#define textattr(attr) __set_gm(attr, 0, 0)
|
#define textattr(attr) __set_gm(attr, 0, 0)
|
||||||
#define textcolor(color) __set_gm(RESETATTR, color, 30)
|
#define textcolor(color) __set_gm(RESETATTR, color, 30)
|
||||||
#define textbackground(color) __set_gm(RESETATTR, color, 40)
|
#define textbackground(color) __set_gm(RESETATTR, color, 40)
|
||||||
@@ -76,6 +76,7 @@
|
|||||||
/**
|
/**
|
||||||
* Local Variables:
|
* Local Variables:
|
||||||
* version-control: t
|
* version-control: t
|
||||||
* c-file-style: "ellemtel"
|
* indent-tabs-mode: t
|
||||||
|
* c-file-style: "linux"
|
||||||
* End:
|
* End:
|
||||||
*/
|
*/
|
||||||
Reference in new issue
Block a user