Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (53 sloc) 1.003 kB
#pragma once
/*
quIRC - simple terminal-based IRC client
Copyright (C) 2010-12 Edward Cree
See quirc.c for license information
input: handle input routines
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
#include <sys/time.h>
typedef struct
{
char *data;
int l;
int i;
}
ichar;
typedef struct
{
ichar left;
ichar right;
}
iline;
typedef struct
{
int nlines;
int ptr;
int scroll;
bool filled;
char **line;
}
ibuffer;
#include "ttyesc.h"
#include "names.h"
#include "buffer.h"
#include "irc.h"
#include "bits.h"
#include "config.h"
#include "keymod.h"
bool ttab;
int inputchar(iline *inp, int *state);
char * slash_dequote(char *inp);
int cmd_handle(char *inp, char **qmsg, fd_set *master, int *fdmax);
void initibuf(ibuffer *i);
void addtoibuf(ibuffer *i, char *data);
void freeibuf(ibuffer *i);
char back_ichar(ichar *buf); // returns the deleted char
void ifree(iline *buf);
void i_home(iline *inp);
void i_end(iline *inp);
Jump to Line
Something went wrong with that request. Please try again.