X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FFormatChar.h;fp=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FFormatChar.h;h=0000000000000000000000000000000000000000;hp=aade488f9e26b23ea15e9d3730ba818f8aab1c7c;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/deps/winpty/misc/FormatChar.h b/node_modules/node-pty/deps/winpty/misc/FormatChar.h deleted file mode 100644 index aade488..0000000 --- a/node_modules/node-pty/deps/winpty/misc/FormatChar.h +++ /dev/null @@ -1,21 +0,0 @@ -#include -#include -#include - -static inline void formatChar(char *str, char ch) -{ - // Print some common control codes. - switch (ch) { - case '\r': strcpy(str, "CR "); break; - case '\n': strcpy(str, "LF "); break; - case ' ': strcpy(str, "SP "); break; - case 27: strcpy(str, "^[ "); break; - case 3: strcpy(str, "^C "); break; - default: - if (isgraph(ch)) - sprintf(str, "%c ", ch); - else - sprintf(str, "%02x ", ch); - break; - } -}