Changeset 636
- Timestamp:
- Sep 28, 2008, 7:27:20 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/ablib/src/Classes/System/Console.ab
r635 r636 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 Console.defBC = Console.BackgroundColor()525 Console.defFC = Console.ForegroundColor()524 Console.defBC = This.ConsoleColorToTextAttribute(Console.BackgroundColor) 525 Console.defFC = This.ConsoleColorToTextAttribute(Console.ForegroundColor) 526 526 End Sub 527 527 … … 532 532 */ 533 533 Static Sub ResetColor() 534 Console.BackgroundColor (Console.defBC)535 Console.ForegroundColor (Console.defFC)534 Console.BackgroundColor = TextAttributeToConsoleColor(Console.defBC) 535 Console.ForegroundColor = TextAttributeToConsoleColor(Console.defFC) 536 536 End Sub 537 537 … … 661 661 Static err = Nothing As IO.TextWriter 662 662 Static cs = Nothing As ActiveBasic.Windows.CriticalSection 663 Static defBC As ConsoleColor664 Static defFC As ConsoleColor663 Static defBC As Word 664 Static defFC As Word 665 665 End Class 666 666
Note:
See TracChangeset
for help on using the changeset viewer.