douglasg14b / BetterConsoleTables

Faster, colorable, more configurable, and more robust console colors & tables for C# console applications
GNU Lesser General Public License v3.0
92 stars 16 forks source link

Does not work on linux #4

Closed bilal-fazlani closed 6 years ago

bilal-fazlani commented 6 years ago
Unhandled Exception: System.PlatformNotSupportedException: Operation is not supported on this platform.
23:43:06.176    at System.ConsolePal.set_WindowWidth(Int32 value)
23:43:06.176    at BetterConsoleTables.Table.PadRow(String row)
23:43:06.176    at BetterConsoleTables.Table.ToString(Int32[] columnLengths)
douglasg14b commented 6 years ago

This has been resolved in the most recent version, I need to update the nuget package with a new release so it's available.

For now we can't set the WindowWidth on Mac or Linux with .net core.

douglasg14b commented 6 years ago

Package has been updated, please update your install to 1.0.1.

bilal-fazlani commented 6 years ago

Unfixable ? does that mean 1.0.1 doesn't work linux?

douglasg14b commented 6 years ago

It means the underlying issue is not resolvable as the .net core 2 api does not support resizing the window on linux or mac.

There is a check in there that just skips window resizing if it's not the correct environment, so 1.0.1 should work fine sans window resizing.