When using CLion I have found the output sometimes cuts off.
For example when running the code:
main.cpp
#include
The consensus is that this is an IDE issue. Therefore, I have reported the bug.
A suitable workaround is to execute the code in debug mode (no breakpoint required).
I will update this question, as soon as this bug is fixed.
WARNING: You should not change information in registry unless you have been asked specifically by JetBrains. Registry is not in the main menu for a reason! Use the following solution at your own risk!!!
JetBrains have contacted me and provided a suitable solution:
run.processes.with.pty
Should then work fine!
The bug has been added here: https://youtrack.jetbrains.com/issue/CPP-6254
Feel free to upvote it!