aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/colors.c
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2010-09-28 10:34:35 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2010-09-28 10:34:35 -0800
commit6f2bba29ac1c13b4092690ccd69af0ab6ff00917 (patch)
treef3925caa2d644a710b2c0fbf8762944b1fc22dc3 /src/colors.c
parent453ac2d91d7df1616fcc55f1dc6979d97a20b90b (diff)
downloaddmstools-6f2bba29ac1c13b4092690ccd69af0ab6ff00917.tar.gz
dmstools-6f2bba29ac1c13b4092690ccd69af0ab6ff00917.tar.bz2
dmstools-6f2bba29ac1c13b4092690ccd69af0ab6ff00917.tar.xz
dmstools-6f2bba29ac1c13b4092690ccd69af0ab6ff00917.zip
rearranging order of ANSI escape codes.
Diffstat (limited to 'src/colors.c')
-rw-r--r--src/colors.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/colors.c b/src/colors.c
index 22b7713..3d1be9e 100644
--- a/src/colors.c
+++ b/src/colors.c
@@ -212,11 +212,6 @@ int main(int argc, char * argv[])
212 { 212 {
213 printf("\033[40m"); 213 printf("\033[40m");
214 214
215 // displays even rows of colors with faint
216 for (x = 0; x < 9; x++)
217 printf(" \033[2;3%i;4%im 2;3%i;4%im \033[40m", x, y, x, y);
218 printf(" \033[0m\n\033[40m");
219
220 // displays odd rows of colors 215 // displays odd rows of colors
221 for (x = 0; x < 9; x++) 216 for (x = 0; x < 9; x++)
222 printf(" \033[0;3%i;4%im 0;3%i;4%im \033[40m", x, y, x, y); 217 printf(" \033[0;3%i;4%im 0;3%i;4%im \033[40m", x, y, x, y);
@@ -227,6 +222,11 @@ int main(int argc, char * argv[])
227 printf(" \033[1;3%i;4%im 1;3%i;4%im \033[40m", x, y, x, y); 222 printf(" \033[1;3%i;4%im 1;3%i;4%im \033[40m", x, y, x, y);
228 printf(" \033[0m\n\033[40m"); 223 printf(" \033[0m\n\033[40m");
229 224
225 // displays even rows of colors with faint
226 for (x = 0; x < 9; x++)
227 printf(" \033[2;3%i;4%im 2;3%i;4%im \033[40m", x, y, x, y);
228 printf(" \033[0m\n\033[40m");
229
230 // adds row of spaces 230 // adds row of spaces
231 for (x = 0; x < 9; x++) 231 for (x = 0; x < 9; x++)
232 printf(" \033[30;40m "); 232 printf(" \033[30;40m ");