Ignore:
Timestamp:
Sep 27, 2008, 6:31:26 AM (16 years ago)
Author:
NoWest
Message:

名前空間への入れ忘れの修正と
ConsoleクラスのResetColorのバグへ対応。
正しい動作かご確認ください。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/ablib/src/Classes/System/Console.ab

    r630 r635  
    522522    Static Sub OpenStandardOutput()
    523523        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  コンソールの前景色および背景色を既定値に設定
    528530    @date   2008/09/07
    529531    @auther NoWest
    530532    */
    531533    Static Sub ResetColor()
    532         Console.BackgroundColor(ConsoleColor.Black)
    533         Console.ForegroundColor(ConsoleColor.Gray)
     534        Console.BackgroundColor(Console.defBC)
     535        Console.ForegroundColor(Console.defFC)
    534536    End Sub
    535537
     
    659661    Static err = Nothing As IO.TextWriter
    660662    Static cs = Nothing As ActiveBasic.Windows.CriticalSection
     663    Static defBC As ConsoleColor
     664    Static defFC As ConsoleColor
    661665End Class
    662666
Note: See TracChangeset for help on using the changeset viewer.