Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
5d219e54
Commit
5d219e54
authored
Feb 09, 2018
by
schultz
Browse files
fixes #8 by clearing all std streams to reset them from an initial error state
parent
114e7737
Changes
1
Hide whitespace changes
Inline
Side-by-side
OpenFlipper.cc
View file @
5d219e54
...
...
@@ -125,6 +125,12 @@ void connect_console()
if
(
check
)
{
std
::
cerr
<<
"Error reopening stderr"
<<
std
::
endl
;
}
std
::
cout
.
clear
();
std
::
cerr
.
clear
();
std
::
cin
.
clear
();
std
::
wcout
.
clear
();
std
::
wcerr
.
clear
();
std
::
wcin
.
clear
();
}
void
attachConsole
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment