Changeset 635 for trunk/ab5.0/ablib/src/Classes/System/Console.ab
- Timestamp:
- Sep 27, 2008, 6:31:26 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Console.ab
r630 r635 522 522 Static Sub OpenStandardOutput() 523 523 Console.SetOut(System.IO.TextWriter.Synchronized(New System.IO.StreamWriter(New System.IO.FileStream(GetStdHandle(STD_OUTPUT_HANDLE), System.IO.FileAccess.Write, False)))) 524 End Sub 525 526 /* 527 @brief コンソールの前景色および背景色を既定値に設定(前景色=gray 背景色=black) 524 Console.defBC = Console.BackgroundColor() 525 Console.defFC = Console.ForegroundColor() 526 End Sub 527 528 /* 529 @brief コンソールの前景色および背景色を既定値に設定 528 530 @date 2008/09/07 529 531 @auther NoWest 530 532 */ 531 533 Static Sub ResetColor() 532 Console.BackgroundColor(Console Color.Black)533 Console.ForegroundColor(Console Color.Gray)534 Console.BackgroundColor(Console.defBC) 535 Console.ForegroundColor(Console.defFC) 534 536 End Sub 535 537 … … 659 661 Static err = Nothing As IO.TextWriter 660 662 Static cs = Nothing As ActiveBasic.Windows.CriticalSection 663 Static defBC As ConsoleColor 664 Static defFC As ConsoleColor 661 665 End Class 662 666
Note:
See TracChangeset
for help on using the changeset viewer.