-
Notifications
You must be signed in to change notification settings - Fork 143
Description
When running ngscopeclient in JetBrains CLion using the default run configuration created by the CMake project, log output is wrapped to one column:

Turning on the "Emulate terminal in the output console" option in the run configuration fixes it in debug mode but not in run mode (which may just be that option not working in run mode - see the limitations discussed in the linked docs).
I suspect that when terminal emulation is disabled or not working the CLion console doesn't allocate a PTY, so the API to get the window size doesn't work, and we're defaulting to a width of 1 column in that case.
If that guess is correct, then either wrapping should be disabled when the window size is unavailable or the default width should be changed to something more reasonable like 80 columns.