qemacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemacs-devel] Changes to qemacs/tty.c


From: Charlie Gordon
Subject: [Qemacs-devel] Changes to qemacs/tty.c
Date: Wed, 11 May 2005 11:12:18 -0400

Index: qemacs/tty.c
diff -u qemacs/tty.c:1.12 qemacs/tty.c:1.13
--- qemacs/tty.c:1.12   Mon May  9 09:10:38 2005
+++ qemacs/tty.c        Wed May 11 15:12:14 2005
@@ -341,7 +341,7 @@
             break;
         }
         ts->input_state = IS_NORM;
-        switch(ch) {
+        switch (ch) {
         case '[':
             ts->input_state = IS_CSI2;
             break;
@@ -379,7 +379,7 @@
     case IS_CSI2:
         /* cygwin/linux terminal */
         ts->input_state = IS_NORM;
-        switch(ch) {
+        switch (ch) {
         case 'A': ch = KEY_F1; goto the_end;
         case 'B': ch = KEY_F2; goto the_end;
         case 'C': ch = KEY_F3; goto the_end;
@@ -390,7 +390,7 @@
     case IS_ESC2:       // "\EO"
         /* xterm/vt100 fn */
         ts->input_state = IS_NORM;
-        switch(ch) {
+        switch (ch) {
         case 'A': ch = KEY_UP; goto the_end;
         case 'B': ch = KEY_DOWN; goto the_end;
         case 'C': ch = KEY_RIGHT; goto the_end;
@@ -442,7 +442,7 @@
     
     dmin = MAXINT;
     cmin = 0;
-    for(i=0;i<NB_COLORS;i++) {
+    for (i = 0; i < NB_COLORS; i++) {
         d = color_dist(color, tty_colors[i]);
         if (d < dmin) {
             cmin = i;
@@ -465,9 +465,9 @@
 
     ptr = ts->screen + y1 * s->width + x1;
     if (color == QECOLOR_XOR) {
-        for(y=y1;y<y2;y++) {
+        for (y = y1; y < y2; y++) {
             ts->line_updated[y] = 1;
-            for(x=x1;x<x2;x++) {
+            for (x = x1; x < x2; x++) {
                 ptr->bgcolor ^= 7;
                 ptr->fgcolor ^= 7;
                 ptr++;
@@ -476,9 +476,9 @@
         }
     } else {
         bgcolor = get_tty_color(color);
-        for(y=y1;y<y2;y++) {
+        for (y = y1; y < y2; y++) {
             ts->line_updated[y] = 1;
-            for(x=x1;x<x2;x++) {
+            for (x = x1; x < x2; x++) {
                 ptr->bgcolor = bgcolor;
                 ptr->ch = ' ';
                 ptr->fgcolor = 7;
@@ -540,7 +540,7 @@
     metrics->font_ascent = font->ascent;
     metrics->font_descent = font->descent;
     x = 0;
-    for(i=0;i<len;i++)
+    for (i = 0; i < len; i++)
         x += term_glyph_width(s, str[i]);
     metrics->width = x;
 }
@@ -578,7 +578,7 @@
                 if (s->clip_x2 < n)
                     n = s->clip_x2;
                 n -= s->clip_x1;
-                for(; n > 0; n--) {
+                for (; n > 0; n--) {
                     ptr->fgcolor = fgcolor;
                     ptr->ch = ' ';
                     ptr++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]