3 * - By John Hodge (thePowersGang)
9 #include "include/vt100.h"
10 #include "include/display.h"
12 int Term_HandleVT100(int Len, const char *Buf)
14 const int max_length = 16;
15 static char inc_buf[max_length]
16 static int inc_len = 0;
18 if( inc_len > 0 || *Buf == '\x1b' )
20 memcpy(inc_buf + inc_len, Buf, min(max_length - inc_len, Len));
21 // Handle VT100 (like) escape sequence
39 // TODO: Carriage return