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

Buffer size to be too large. #13

Closed franklupo closed 5 years ago

franklupo commented 5 years ago

Hi, what does this mean?

The new console window size would force the console buffer size to be too large. Parameter name: width Actual value was 186

Best regards

douglasg14b commented 5 years ago

Hu,

That's a new one. It essentially means the console this was ran in has a width restriction smaller than the value the table tried to expand it to.

I believe I can fix this by checking for the max width of the console before attempting to resize.

douglasg14b commented 5 years ago

Also note that this means that your table is too wide for your console, and the console will start wrapping text, which will break the table's formatting.

douglasg14b commented 5 years ago

Update to v1.1.1 when nuget finishes indexing. Should be resolved.

franklupo commented 5 years ago

Good. Is possible disable resize Windows?

douglasg14b commented 5 years ago

I suppose it could be, yeah. Can you make another issue as a request for this?

douglasg14b commented 5 years ago

@franklupo I've added a ExpandConsole flag in the config.

Set this to false to disable expanding the window. You can find this on v 1.1.2 when it's indexed on nuget