Skip to content

Instantly share code, notes, and snippets.

@shawnfeng0
Created October 29, 2021 08:27
Show Gist options
  • Save shawnfeng0/ed1d0295bbd50c50d9f35165c967c20f to your computer and use it in GitHub Desktop.
Save shawnfeng0/ed1d0295bbd50c50d9f35165c967c20f to your computer and use it in GitHub Desktop.
#include <iostream>
#define REFRESH_OUTPUT_LINE(token) \
std::cout << "\r"; \
std::cout << #token << " => " << (token); \
std::cout << "\x1b[K"; \
std::cout.flush();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment