Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (18 sloc) 0.834 kB
/*
quIRC - simple terminal-based IRC client
Copyright (C) 2010 Edward Cree
See quirc.c for license information
ttyesc: ANSI Terminal Escape Sequences
*/
#pragma once
#define CLS "\033[2J" // You might recognise these two names...
#define LOCATE "\033[%d;%dH" // as being very similar to some basic keywords... :p
#define CLR "\033[K" // CLear Line to right
#define CLA "\033[2K" // Clear Line All
#define SAVEPOS "\033[s" // Apparently not all terminal emulators
#define RESTPOS "\033[u" // honour these two. They're not actually used right now
#include <stdio.h>
#include <stdbool.h>
int setcol(int fore, int back, bool hi, bool ul); // sets the text colour
int resetcol(void); // default setcol() values
int settitle(char *newtitle); // sets the window title if running in a term in a window system (eg. xterm)
Jump to Line
Something went wrong with that request. Please try again.