goblinfactory / konsole

Home of the simple console library consisting of ProgressBar, Window, Form, Draw & MockConsole (C# console progress bar with support for single or multithreaded progress updates) Window is a 100%-ish console compatible window, supporting all normal console writing to a windowed section of the screen, supporting scrolling and clipping of console output.
719 stars 62 forks source link

ProgressBar not working on Linux #81

Open pmengal opened 3 years ago

pmengal commented 3 years ago

Here is the stack strace:

System.PlatformNotSupportedException: Operation is not supported on this platform. at System.ConsolePal.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at System.Console.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at Konsole.Writer.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at Konsole.ConcurrentWriter.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at Konsole.Window.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at Konsole.ConcurrentWriter.MoveBufferArea(Int32 sourceLeft, Int32 sourceTop, Int32 sourceWidth, Int32 sourceHeight, Int32 targetLeft, Int32 targetTop, Char sourceChar, ConsoleColor sourceForeColor, ConsoleColor sourceBackColor) at Konsole.Window.ScrollDown() at Konsole.Window.WriteLine(String text) at Konsole.ConcurrentWriter.WriteLine(String text) at Konsole.ProgressBarSlim..ctor(Int32 max, Nullable1 textWidth, Char character, IConsole console) at Konsole.ProgressBar..ctor(Int32 max, Nullable1 textWidth, Char character, PbStyle style, IConsole console) at Konsole.ProgressBar..ctor(IConsole console, Int32 max, Int32 textWidth) at CasterStats.TvAnalytics.ConsoleProgressReport.UpdateProgressBar(ProgressReport e) at CasterStats.TvAnalytics.TvProgramCommand.<>c__DisplayClass0_0.<Run>b__1(Object o, ProgressReport i) at CasterStats.TvAnalytics.Calculate.OnReportProgress(ProgressReport e) at CasterStats.TvAnalytics.CalculatePrograms.<>c__DisplayClass1_0.<CalculateProgramList>b__0() at CasterStats.TvAnalytics.RavenDbCache1.GetOrCreate(Object objectKey, Int32 cacheDuration, Func1 createItem) at CasterStats.TvAnalytics.CalculatePrograms.CalculateProgramList(IList1 plays, Parameters parameters) at CasterStats.TvAnalytics.TvProgramCommand.b0_0(TvProgramCommandOptions parameter) at CasterStats.TvAnalytics.TvCommandBase`2.<>c__DisplayClass3_0.b0(T parameter, List1 results) at CasterStats.TvAnalytics.TvCommandBase2.CalculateResult(T options, Action2 calculateCallback)

goblinfactory commented 3 years ago

This is a duplicate of #30 (Implement MoveBufferArea in Unix to enable using more cross platform support #30) Please don't close this issue, it's useful to leave open so that other developers will read the comments and look at the issue. Thank you Alan

goblinfactory commented 3 years ago

TLDR;