Files
ConsoleMenu/console_function.h
felicianoa237 806041eaaa Updated code
2025-03-24 09:02:39 -05:00

33 lines
836 B
C

#ifndef CONSOLE_FUNCTIONS_H
#define CONSOLE_FUNCTIONS_H
#include <windows.h>
#include <stdio.h>
#include <stdbool.h>
#include "entities.h"
// Function declarations
// Function to clear the console
void clearConsole();
// Function to enable ANSI support
void enableANSI();
// Function to set cursor position
void gotoxy(int x, int y);
// Function to update the console with an entity's data
bool updateConsole(struct Entity *pEntity);
// Function to get console buffer information
void getBufferInfo(HANDLE *hHandle, CONSOLE_SCREEN_BUFFER_INFO *pCSBI);
// Function to print a list of entities to the console
void printList(HANDLE *pHConsole, DWORD *pCharsWritten, Entity *e);
// Function to print console bounds information
void printBoundsToConsole(HANDLE *pHConsole, SMALL_RECT *pScreenBounds);
#endif // CONSOLE_FUNCTIONS_H