These are sample programs to output some data to Cygwin pty from a normal Win32 program.
-
Download go-iscygpty
| 210 (Christian Brabandt) | |
| 174 (Ken Takata) | |
| 103 (Hirohito Higashi) | |
| 92 (Yasuhiro Matsumoto) | |
| 86 (Dominique Pelle) | |
| 45 (Yegappan Lakshmanan) | |
| 39 (Kazunobu Kuriyama) | |
| 34 (Mike Williams) | |
| 32 (ZyX) | |
| 28 (Ozaki Kiichi) |
These are sample programs to output some data to Cygwin pty from a normal Win32 program.
Download go-iscygpty
| #!/usr/bin/python3 | |
| # Download the latest KaoriYa Vim from the GitHub release | |
| import argparse | |
| import calendar | |
| import io | |
| import json | |
| import os | |
| import sys |
| " Load matchit.vim | |
| runtime macros/matchit.vim | |
| function! s:set_match_words() | |
| " Enable these pairs for all file types | |
| let words = ['(:)', '{:}', '[:]', '(:)', '「:」'] | |
| if exists('b:match_words') | |
| for w in words | |
| if b:match_words !~ '\V' . w | |
| let b:match_words .= ',' . w |
| --- /c/tmp/clang.txt 2015-12-09 03:50:13.363861600 +0900 | |
| +++ /c/tmp/clang-c2.txt 2015-12-09 03:33:23.445028500 +0900 | |
| @@ -9,11 +9,13 @@ | |
| Emit ARC errors even if the migrator can fix them | |
| -arcmt-migrate-report-output <value> | |
| Output path for the plist report | |
| + -B2 <value> Location of backend dll | |
| --cuda-device-only Do device-side CUDA compilation only | |
| --cuda-host-only Do host-side CUDA compilation only | |
| -cxx-isystem <directory> |
| $ make | |
| gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -o objects/ex_cmds2.o ex_cmds2.c | |
| ex_cmds2.c: 関数 ‘profile_divide’ 内: | |
| ex_cmds2.c:981:2: コンパイラ内部エラー: Segmentation fault | |
| tm2->tv_sec = floor(usec / 1000000.0); | |
| ^ | |
| Please submit a full bug report, | |
| with preprocessed source if appropriate. | |
| See <http://gcc.gnu.org/bugs.html> for instructions. | |
| Makefile:2588: ターゲット 'objects/ex_cmds2.o' のレシピで失敗しました |
| From 4775f9b3379dee2333ed70ce4ff49596585aa89a Mon Sep 17 00:00:00 2001 | |
| From: "K.Takata" <kentkt@csc.jp> | |
| Date: Sat, 5 Sep 2015 21:02:39 +0900 | |
| Subject: [PATCH 1/4] Fix that preventing multiple instances didn't work | |
| OpenMutex() shouldn't be used for this purpose, use CreateMutex() | |
| instead. | |
| --- | |
| CLCLSet/CLCLSet.c | 5 ++--- | |
| main.c | 5 ++--- |
| " Encode a 32-bit integer into a 5-byte string. | |
| function! s:encode_size(n) | |
| " Set each bit7 to 1 in order to avoid NUL byte. | |
| return printf("%c%c%c%c%c", | |
| \ ((a:n / 0x10000000) % 0x80) + 0x80, | |
| \ ((a:n / 0x200000) % 0x80) + 0x80, | |
| \ ((a:n / 0x4000) % 0x80) + 0x80, | |
| \ ((a:n / 0x80) % 0x80) + 0x80, | |
| \ ( a:n % 0x80) + 0x80) | |
| endfunction |
| #include <stdio.h> | |
| int main() | |
| { | |
| int i, d, n, ret; | |
| char *strs[] = {"3", "3x", "3\x80", "3\xf0", "3\xfe", "3\xff"}; | |
| for (i = 0; i < sizeof(strs) / sizeof(strs[0]); i++) { | |
| ret = sscanf(strs[i], "%d%n", &d, &n); | |
| printf("str=%s: d=%d, n=%d, ret=%d\n", strs[i], d, n, ret); |
| #include <windows.h> | |
| #include <stdio.h> | |
| #include <conio.h> | |
| #include <io.h> | |
| int main() | |
| { | |
| HANDLE hScr, hConOut; | |
| DWORD written; | |
| int c; |