Files
beluga/include/terminal.h
T
arthur 3d49a0e2eb
Build project / build (push) Has been cancelled
copy paste functions
2026-05-26 08:28:38 +02:00

37 lines
557 B
C

#ifndef TERMINAL_H_
#define TERMINAL_H_
/* includes */
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
/**
* \fn void die(const char *s)
* \brief Exit program and return s error message.
* \param *s Error string
* */
void die(const char *s);
void disableRawMode();
void enableRawMode();
int editorReadKey();
int getCursorPosition(int *rows, int *cols);
int getWindowSize(int *rows, int *cols);
char *keyToString(int key);
void appDebug(const char *fmt, ...);
#endif