Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

term.h 872 Bytes
Newer Older
deuce's avatar
deuce committed
1 2
/* Copyright (C), 2007 by Stephen Hurd */

3
/* $Id: term.h,v 1.20 2020/05/02 03:09:15 rswindell Exp $ */
4

5 6 7
#ifndef _TERM_H_
#define _TERM_H_

8
#include "bbslist.h"
9
#include "ciolib.h"
10

11 12 13 14 15
struct terminal {
	int	height;
	int	width;
	int	x;
	int	y;
deuce's avatar
deuce committed
16
	int nostatus;
17 18
};

19 20
#define XMODEM_128B		(1<<10)	/* Use 128 byte block size (ick!) */

21
extern struct terminal term;
22
extern struct cterminal	*cterm;
23
extern int log_level;
24

25 26 27 28
void zmodem_upload(struct bbslist *bbs, FILE *fp, char *path);
void xmodem_upload(struct bbslist *bbs, FILE *fp, char *path, long mode, int lastch);
void xmodem_download(struct bbslist *bbs, long mode, char *path);
void zmodem_download(struct bbslist *bbs);
29
BOOL doterm(struct bbslist *);
30
void mousedrag(struct vmem_cell *scrollback);
31
void get_cterm_size(int *cols, int *rows, int ns);
32
int get_cache_fn_base(struct bbslist *bbs, char *fn, size_t fnsz);
33 34

#endif