Changeset 16243
- Timestamp:
- 07/24/08 21:25:03 (5 years ago)
- Location:
- lang/cplusplus/i3
- Files:
-
- 4 added
- 5 modified
-
src/mol/include/mol/os-windows/Common.h (added)
-
src/os-windows/CygwinPty.cpp (modified) (1 diff)
-
src/os-windows/CygwinPty.h (modified) (1 diff)
-
src/os-windows/Os.cpp (modified) (1 diff)
-
src/os-windows/OsTest1.cpp (modified) (2 diffs)
-
windows/i3_test.vcproj (modified) (7 diffs)
-
windows/resources/fakecygpty.ico (added)
-
windows/resources/fakecygpty.rc (added)
-
windows/resources/fakecygpty.xcf (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/i3/src/os-windows/CygwinPty.cpp
r16113 r16243 6 6 } 7 7 8 bool CygwinPty::s igint() {8 bool CygwinPty::sendSigInt() { 9 9 BOOL result = GenerateConsoleCtrlEvent(CTRL_C_EVENT, pi.dwProcessId); 10 10 return (result != 0); 11 //return write("\003", 1); 11 12 } 12 13 -
lang/cplusplus/i3/src/os-windows/CygwinPty.h
r16113 r16243 17 17 return true; 18 18 } 19 bool s igint();19 bool sendSigInt(); 20 20 private: 21 21 HANDLE hStdInput; -
lang/cplusplus/i3/src/os-windows/Os.cpp
r16149 r16243 7 7 init_windows_gettext(); 8 8 } 9 extern HINSTANCE hInstance; 9 10 } 10 11 -
lang/cplusplus/i3/src/os-windows/OsTest1.cpp
r16149 r16243 4 4 #include "Common.h" 5 5 #include "CygwinPty.h" 6 7 using namespace i3; 6 8 7 9 BOOST_AUTO_TEST_CASE(aaaab) { … … 18 20 BOOST_REQUIRE(pty.write("echo baz\n")); 19 21 BOOST_REQUIRE(pty.write("/bin\t\t")); 20 BOOST_REQUIRE(pty.sigint()); 21 BOOST_REQUIRE(pty.write("echo hoge\n")); 22 BOOST_REQUIRE(pty.sigint()); 22 BOOST_REQUIRE(pty.sendSigInt()); 23 BOOST_REQUIRE(pty.sendSigInt()); 24 BOOST_REQUIRE(pty.write("echo foo\n")); 25 BOOST_REQUIRE(pty.sendSigInt()); 26 BOOST_REQUIRE(pty.sendSigInt()); 27 BOOST_REQUIRE(pty.write("while true\ndo\necho\ndone\n")); 28 Sleep(3000); 29 BOOST_REQUIRE(pty.sendSigInt()); 23 30 BOOST_REQUIRE(pty.write("echo hage\n")); 24 31 } -
lang/cplusplus/i3/windows/i3_test.vcproj
r16113 r16243 289 289 > 290 290 <File 291 RelativePath="..\src\BoostTestMain.cpp" 292 > 293 </File> 294 <File 291 295 RelativePath="..\src\CompletionWindow.cpp" 292 296 > … … 309 313 </File> 310 314 <File 315 RelativePath="..\src\gui-windows\GuiTest1.cpp" 316 > 317 </File> 318 <File 319 RelativePath="..\src\gui-windows\GuiTest2.cpp" 320 > 321 </File> 322 <File 311 323 RelativePath="..\src\InputWindow.cpp" 312 324 > … … 326 338 <File 327 339 RelativePath="..\src\os-windows\Os.cpp" 340 > 341 </File> 342 <File 343 RelativePath="..\src\os-windows\OsTest1.cpp" 344 > 345 </File> 346 <File 347 RelativePath="..\src\os-windows\OsTest2.cpp" 328 348 > 329 349 </File> … … 357 377 </File> 358 378 <File 359 RelativePath="..\src\ TestMain.cpp"379 RelativePath="..\src\os-windows\WindowsCommon.cpp" 360 380 > 361 381 </File> … … 375 395 </File> 376 396 <File 397 RelativePath="..\src\gui-windows\CompletionWindowCore.h" 398 > 399 </File> 400 <File 377 401 RelativePath="..\src\windows\CompletionWindowCore.h" 378 402 > 379 403 </File> 380 404 <File 381 RelativePath="..\src\gui-windows\CompletionWindowCore.h"382 >383 </File>384 <File385 405 RelativePath="..\src\os-windows\CygwinPty.h" 386 406 > … … 407 427 </File> 408 428 <File 429 RelativePath="..\src\gui-windows\InputWindowCore.h" 430 > 431 </File> 432 <File 409 433 RelativePath="..\src\windows\InputWindowCore.h" 410 434 > 411 435 </File> 412 436 <File 413 RelativePath="..\src\gui-windows\InputWindowCore.h"414 >415 </File>416 <File417 437 RelativePath="..\src\LibintlUtf16le.h" 418 438 > … … 436 456 <File 437 457 RelativePath="..\src\ShellManager.h" 458 > 459 </File> 460 <File 461 RelativePath="..\src\os-windows\WindowsCommon.h" 438 462 > 439 463 </File>
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)