commandline
commandline copied to clipboard
[BUG] Wrong length of windows console
The line is truncated based on the HEIGHT of the console in windows instead of the width of the console.
In impl::get_terminal_width in file windows_impl.cpp: https://github.com/lionkor/commandline/blob/3951e554e792520a845d3a07bb0e21e07cb3b5ad/src/windows_impl.cpp#L37-L41
You are returning csbi.dwSize.Y instead of csbi.dwSize.X
Yeah this looks like a bug indeed. Do you feel like making a PR? Otherwise I'll fix it