Add output helper

This commit is contained in:
Joel Thomas
2026-02-18 20:40:35 +05:30
parent 5fa4d68493
commit 42d2fac9dd
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,11 @@
/*
Author: Joel Mathew Thomas
Date: 18-02-2026
*/
#include "OutputHelper.h"
void util::clear()
{
std::cout << "\x1B[2J\x1B[H" << std::flush;
}
@@ -0,0 +1,12 @@
/*
Author: Joel Mathew Thomas
Date: 18-02-2026
*/
#pragma once
#include <iostream>
namespace util
{
void clear();
}