Skip to content

Flush the pipe after having sent a command #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 16, 2020
Merged

Flush the pipe after having sent a command #1

merged 4 commits into from
Dec 16, 2020

Conversation

ziotom78
Copy link
Owner

@ziotom78 ziotom78 commented Dec 16, 2020

This commit forces the library to send commands to Gnuplot every time a plot, histogram, or plot3d method is invoked.

This enables the possibility to use the Gnuplot window interactively in example-simple.cpp. A call to std::getchar has been added to ensure that Gnuplot is still running if the user wants to interact with the window.

  • Add fflush to Gnuplot::sendcommand
  • Add a request for keypress in example-simple

@ziotom78 ziotom78 merged commit f22551c into master Dec 16, 2020
@ziotom78 ziotom78 deleted the flush branch December 16, 2020 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant