Skip to content

Log output is 1 character wide in CLion console #929

@Elemecca

Description

@Elemecca

When running ngscopeclient in JetBrains CLion using the default run configuration created by the CMake project, log output is wrapped to one column:
Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions