24 lines
445 B
C++
24 lines
445 B
C++
/*
|
|
* File: OutputHelper.h
|
|
* Description: Provides functions to help with console output.
|
|
* Author: Trenser
|
|
* Created: 18-May-2026
|
|
*/
|
|
|
|
#pragma once
|
|
#include <iostream>
|
|
|
|
namespace util
|
|
{
|
|
/*
|
|
* Function: clear
|
|
* Description: Clears the console screen output.
|
|
* Parameters: None
|
|
* Returns:
|
|
* void - no return value
|
|
*/
|
|
inline void clear()
|
|
{
|
|
std::cout << "\x1B[2J\x1B[H" << std::flush;
|
|
}
|
|
} |