Skip to content

Removing the "Press any key to continue" prompt? #14

@ocornut

Description

@ocornut

Hello,

I am currently toying with OpenCppCoverage (which is wonderful, and even more so the presence of a Visual Studio plugin! thank you everyone involved!) and have feedback to make. When I run the plugin at the end of my process it is stopping on a "Press any key to continue..." prompt:

[info] ----------------------------------------------------
[info] Coverage binary generated in file: C:\Users\Omar\AppData\Local\Temp\quxkwpsz.lxv
[info] ----------------------------------------------------
Press any key to continue...

Which ironically seems to requires a Enter press to continue (other keys don't work).
I find this prompt extremely annoying as it prevents me from running OpenCppCoverage quickly and seeing the result in Visual Studio immediately.

I have noticed this was added intentionally as part of the main package to support the plugin mode:
https://github.com/OpenCppCoverage/OpenCppCoverage/blob/2e280a5bda2d67789d6b60f8f8c0de6038a41314/OpenCppCoverage/OpenCppCoverage.cpp#L200

if (options->IsPlugingModeEnabled())
{
  std::cout << "Press any key to continue... ";
  std::cin.get();
}

My request/suggestion would be to add a checkbox on the plugin side to disable this prompt.
The prompt seems tied to the --plugin command-line argument which appears to only be used for that specific thing at the moment.

Regards,
Omar

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions