Lines Matching refs:esc_seq
48 } esc_seq; member
205 char *esc = priv->esc_seq.buf + 2; in handle_lcd_special_code()
352 if (priv->esc_seq.buf[priv->esc_seq.len - 1] != ';') in handle_lcd_special_code()
372 if ((c != '\n') && priv->esc_seq.len >= 0) { in charlcd_write_char()
374 priv->esc_seq.buf[priv->esc_seq.len++] = c; in charlcd_write_char()
375 priv->esc_seq.buf[priv->esc_seq.len] = '\0'; in charlcd_write_char()
378 priv->esc_seq.len = -1; in charlcd_write_char()
383 priv->esc_seq.len = 0; in charlcd_write_char()
384 priv->esc_seq.buf[priv->esc_seq.len] = '\0'; in charlcd_write_char()
437 if (priv->esc_seq.len >= 2) { in charlcd_write_char()
440 if (!strcmp(priv->esc_seq.buf, "[2J")) { in charlcd_write_char()
444 } else if (!strcmp(priv->esc_seq.buf, "[H")) { in charlcd_write_char()
450 else if ((priv->esc_seq.len >= 3) && in charlcd_write_char()
451 (priv->esc_seq.buf[0] == '[') && in charlcd_write_char()
452 (priv->esc_seq.buf[1] == 'L')) { in charlcd_write_char()
461 if (processed || (priv->esc_seq.len >= LCD_ESCAPE_LEN)) in charlcd_write_char()
462 priv->esc_seq.len = -1; in charlcd_write_char()
607 priv->esc_seq.len = -1; in charlcd_alloc()