summary |
log |
commit |
diff |
tree
raw |
patch |
inline | side by side (from parent 1:
3764f38)
Almost of the sequences execute their action in a separate function,
which is good because helps to read the full set of sequences
faster.
static void tfulldirt(void);
static void techo(char *, int);
static bool tcontrolcode(uchar );
static void tfulldirt(void);
static void techo(char *, int);
static bool tcontrolcode(uchar );
+static void tdectest(char );
static int32_t tdefcolor(int *, int *, int);
static void tselcs(void);
static void tdeftran(char);
static int32_t tdefcolor(int *, int *, int);
static void tselcs(void);
static void tdeftran(char);
+void
+tdectest(char c) {
+ static char E[UTF_SIZ] = "E";
+ int x, y;
+
+ if(c == '8') { /* DEC screen alignment test. */
+ for(x = 0; x < term.col; ++x) {
+ for(y = 0; y < term.row; ++y)
+ tsetchar(E, &term.c.attr, x, y);
+ }
+ }
+}
+
void
tputc(char *c, int len) {
uchar ascii;
void
tputc(char *c, int len) {
uchar ascii;
tdeftran(ascii);
tselcs();
} else if(term.esc & ESC_TEST) {
tdeftran(ascii);
tselcs();
} else if(term.esc & ESC_TEST) {
- if(ascii == '8') { /* DEC screen alignment test. */
- char E[UTF_SIZ] = "E";
- int x, y;
-
- for(x = 0; x < term.col; ++x) {
- for(y = 0; y < term.row; ++y)
- tsetchar(E, &term.c.attr, x, y);
- }
- }
} else {
switch(ascii) {
case '[':
} else {
switch(ascii) {
case '[':