Revision: 9551 https://osdn.net/projects/ttssh2/scm/svn/commits/9551 Author: zmatsuo Date: 2021-12-01 01:23:18 +0900 (Wed, 01 Dec 2021) Log Message: ----------- cyglaunchのドキュメント追記 - cmd.exe, WSL を Tera Term から使うヒントを追記 - テストバッチファイル追加 Modified Paths: -------------- trunk/cygwin/cyglaunch/CMakeLists.txt trunk/cygwin/cyglaunch/README.md Added Paths: ----------- trunk/cygwin/cyglaunch/cyglaunch_cmd.bat trunk/cygwin/cyglaunch/cyglaunch_powershell.bat trunk/cygwin/cyglaunch/cyglaunch_wsl.bat -------------- next part -------------- Modified: trunk/cygwin/cyglaunch/CMakeLists.txt =================================================================== --- trunk/cygwin/cyglaunch/CMakeLists.txt 2021-11-30 15:58:52 UTC (rev 9550) +++ trunk/cygwin/cyglaunch/CMakeLists.txt 2021-11-30 16:23:18 UTC (rev 9551) @@ -27,6 +27,14 @@ DESTINATION . ) +install( + FILES + cyglaunch_cmd.bat + cyglaunch_powershell.bat + cyglaunch_wsl.bat + DESTINATION . + ) + if(MSVC) # subsystem:windows, but start form wmain() if(${CMAKE_VERSION} VERSION_LESS "3.12.0") Modified: trunk/cygwin/cyglaunch/README.md =================================================================== --- trunk/cygwin/cyglaunch/README.md 2021-11-30 15:58:52 UTC (rev 9550) +++ trunk/cygwin/cyglaunch/README.md 2021-11-30 16:23:18 UTC (rev 9551) @@ -26,6 +26,49 @@ cygterm_here_reg_sample.txt 参照 +## cyglaunchの動作 + +cygterm.exe の起動と同等なbat + +``` +set PATH=c:\cygwin64\bin;%PATH% +\path\to\cygterm.exe +``` + +msys2term.exe の起動と同等なbat + +``` +set PATH=c:\msys64\bin;%PATH% +\path\to\msys2term.exe +``` + +## TODO + +cyglaunchを拡張して次のbatと同等に起動させれば、Tera Termから使用できる + +### cmd.exe + +``` +start "" "\path\to\cygterm.exe" -t "\path\to\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s "%COMSPEC%" +``` + +Microsoft Windows [Version 10.0.19043.1348] で動作確認 + +### powershell.exe + +``` +start "" "\path\to\cygterm.exe" -t "\path\to\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s "C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe" +``` + +### WSL (Windows Subsystem for Linux) + +``` +start "" "\path\to\cygterm.exe" -t "\path\to\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s "/path/to/winpty.exe c:/windows/system32/bash.exe" +``` + +winpty は [github](https://github.com/rprichard/winpty/releases) からダウンロードすることができる。 + + ## 歴史 - cyglaunch は通常のexeファイル Added: trunk/cygwin/cyglaunch/cyglaunch_cmd.bat =================================================================== --- trunk/cygwin/cyglaunch/cyglaunch_cmd.bat (rev 0) +++ trunk/cygwin/cyglaunch/cyglaunch_cmd.bat 2021-11-30 16:23:18 UTC (rev 9551) @@ -0,0 +1,2 @@ +set DIR=%~dp0 +start "" "%DIR%\cygterm.exe" -t "%DIR%\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s "c:/windows/system32/cmd.exe" Added: trunk/cygwin/cyglaunch/cyglaunch_powershell.bat =================================================================== --- trunk/cygwin/cyglaunch/cyglaunch_powershell.bat (rev 0) +++ trunk/cygwin/cyglaunch/cyglaunch_powershell.bat 2021-11-30 16:23:18 UTC (rev 9551) @@ -0,0 +1,2 @@ +set DIR=%~dp0 +start "" "%DIR%\cygterm.exe" -t "%DIR%\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s ""C:/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"" Added: trunk/cygwin/cyglaunch/cyglaunch_wsl.bat =================================================================== --- trunk/cygwin/cyglaunch/cyglaunch_wsl.bat (rev 0) +++ trunk/cygwin/cyglaunch/cyglaunch_wsl.bat 2021-11-30 16:23:18 UTC (rev 9551) @@ -0,0 +1,2 @@ +set DIR=%~dp0 +start "" "%DIR%\cygterm.exe" -t "%DIR%\ttermpro.exe %%s %%d /E /KR=UTF8 /KT=UTF8 /nossh /VTICON=TTERM" -s "D:/work/home/teraterm/bin/winpty.exe c:/windows/system32/bash.exe"