Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.658 kB
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
1 /*
2 quIRC - simple terminal-based IRC client
3 Copyright (C) 2010 Edward Cree
4
5 See quirc.c for license information
6 bits: general helper functions
7 */
8
9 #include <stdio.h>
10 #include <stdlib.h>
2a267eb Fixed bugs with prev. commit
Sound and Fury authored
11 #include <string.h>
d912744 Fix previous commit (failed to compile due to missing #include)
Sound and Fury authored
12 #include "ttyesc.h"
94183bc Decode (and optionally use for display) mIRC colour codes
Sound and Fury authored
13 #include "colour.h"
2a267eb Fixed bugs with prev. commit
Sound and Fury authored
14
a9c16e9 Things generally are now buffer-aware
Sound and Fury authored
15 // helper fn macros
16 #define max(a,b) ((a)>(b)?(a):(b))
17 #define min(a,b) ((a)<(b)?(a):(b))
18
94183bc Decode (and optionally use for display) mIRC colour codes
Sound and Fury authored
19 // global settings & state (set in quirc.c)
20 int width, height; // term size
21 int mirc_colour_compat;
709dc6b Various improvements eg rc file (.quirc)
Sound and Fury authored
22
23 char * fgetl(FILE *); // gets a line of string data; returns a malloc-like pointer (preserves trailing \n)
df117f0 Some of the printing is now going through the multibuffer code
Sound and Fury authored
24 int wordline(char *, int x, char **); // prepares a string for printing, breaking lines in between words
Something went wrong with that request. Please try again.