commandline icon indicating copy to clipboard operation
commandline copied to clipboard

[BUG] Wrong length of windows console

Open Tomdein opened this issue 9 months ago • 1 comments

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

Tomdein avatar Jul 05 '25 01:07 Tomdein

Yeah this looks like a bug indeed. Do you feel like making a PR? Otherwise I'll fix it

lionkor avatar Jul 07 '25 17:07 lionkor