X-Git-Url: https://git.josue.xyz/?p=VSoRC%2F.git;a=blobdiff_plain;f=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FWin32Echo1.cc;fp=node_modules%2Fnode-pty%2Fdeps%2Fwinpty%2Fmisc%2FWin32Echo1.cc;h=0000000000000000000000000000000000000000;hp=06fc79f79457ab6be6c3bd87f4f62df8f64cf74d;hb=5e96dd57ddd883604e87f62bdddcb111c63a6e1a;hpb=acb5f682a2b75b972710cabd81658f63071324b0 diff --git a/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc b/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc deleted file mode 100644 index 06fc79f..0000000 --- a/node_modules/node-pty/deps/winpty/misc/Win32Echo1.cc +++ /dev/null @@ -1,26 +0,0 @@ -/* - * A Win32 program that reads raw console input with ReadFile and echos - * it to stdout. - */ - -#include -#include -#include - -int main() -{ - int count = 0; - HANDLE hStdIn = GetStdHandle(STD_INPUT_HANDLE); - HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE); - SetConsoleMode(hStdIn, 0); - - while (true) { - DWORD actual; - char ch; - ReadFile(hStdIn, &ch, 1, &actual, NULL); - printf("%02x ", ch); - if (++count == 50) - break; - } - return 0; -}