The R Project SVN R

Rev

Rev 24577 | Rev 28991 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4394 ripley 1
/*
2
 *  R : A Computer Language for Statistical Data Analysis
3
 *  file console.h
24577 ripley 4
 *  Copyright (C) 1998--2003  Guido Masarotto and Brian Ripley
4394 ripley 5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
5458 ripley 18
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
4394 ripley 19
 */
20
 
21
typedef window console;
22
typedef window pager;
9054 ripley 23
typedef window dataeditor;
4394 ripley 24
 
25
void
26
setconsoleoptions(char *fnname,int fnsty, int fnpoints,
24577 ripley 27
		  int rows, int cols, int consx, int consy,
28
		  rgb nfg, rgb nufg, rgb nbg, rgb high,
11588 ripley 29
		  int pgr, int pgc, int multiplewindows, int widthonresize,
30
		  int bufbytes, int buflines);
4394 ripley 31
pager newpager(char *title, char *filename, char *header, int unlinkonexit);
32
console newconsole(char *name, int flags);
33
int  consolereads(console c, char *prompt, char *buf, int len,
34
		  int addtohistory);
35
int  consolewrites(console c, char *s);
36
int  consolecancopy(console c);
37
int  consolecanpaste(console c);
38
void consolecopy(console c);
39
void consolepaste(console c);
40
void consoleselectall(console c);
41
void consolecmd(console c, char *cmd);
42
void consolehelp();
43
void consolesetbrk(console c, actionfn, char ch, char mod);
44
void consoletogglelazy(console c);
45
int  consolegetlazy(console c);
46
void consoleflush(console c);
47
void consoleprint(console c);
17261 ripley 48
void consolesavefile(console c, int pager);
9212 ripley 49
void drawconsole(control c, rect r);
10227 ripley 50
void consoleclear(control c);
4405 ripley 51
 
52
extern int setWidthOnResize;
53
int consolecols(console c);
21959 ripley 54
void pagerbclose(control m);
55
 
24606 ripley 56
int graphicsx, graphicsy;