Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (28 sloc) 1.16 KB
#pragma once
quIRC - simple terminal-based IRC client
Copyright (C) 2010-12 Edward Cree
See quirc.c for license information
ttyesc: terminfo-powered terminal escape sequences
#include <stdio.h>
#include <stdbool.h>
#include <sys/ioctl.h>
#include <term.h>
#undef tab
#include "bits.h"
int setcol(int fore, int back, bool hi, bool ul); // sets the text colour
int s_setcol(int fore, int back, bool hi, bool ul, char **rv, size_t *l, size_t *i); // writes a setcol-like string with append_char (see bits.h)
int resetcol(void); // default setcol() values
int s_resetcol(char **rv, size_t *l, size_t *i); // s_setcol to the colour set by resetcol
int cls(void); // CLear Screen
int s_cls(char **rv, size_t *l, size_t *i);
int clr(void); // Clear Line to Right
int s_clr(char **rv, size_t *l, size_t *i);
int locate(int y, int x); // Set cursor position
int s_locate(int y, int x, char **rv, size_t *l, size_t *i);
int savepos(void); // Save cursor position
int restpos(void); // Restore cursor position
int settitle(const char *newtitle); // sets the window title if running in a term in a window system (eg. xterm)
int termsize(int fd, int *x, int *y);
int termsgr0(void);
Jump to Line
Something went wrong with that request. Please try again.