noirchat/con/console.h

38 lines
576 B
C

#ifndef CONSOLE_H
#define CONSOLE_H
#include <sys/select.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h> // ftruncate
#include "../ui_common.h"
#include "../common.h"
#include "../macros.h"
#include "../net.h"
#define RED 31
#define GREEN 32
#define YELLOW 33
#define CYAN 34
#define MAGENTA 35
#define BLACK 30
#define BG_WHITE 47
#define UNDERSCORE 4
#define DIM 2
/* ui */
void showHelp(const char *value);
void showInterfaces();
void showVariables();
void showPrompt();
void clearLine();
void setAttribute(const int);
void clearAttributes();
#endif