The R Project SVN R

Rev

Rev 51948 | 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
44016 ripley 5
 *  Copyright (C) 2004-8      The R Foundation
4394 ripley 6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; either version 2 of the License, or
10
 *  (at your option) any later version.
11
 *
12
 *  This program is distributed in the hope that it will be useful,
13
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 *  GNU General Public License for more details.
16
 *
17
 *  You should have received a copy of the GNU General Public License
42300 ripley 18
 *  along with this program; if not, a copy is available at
68956 ripley 19
 *  https://www.R-project.org/Licenses/
4394 ripley 20
 */
21
 
22
typedef window console;
23
typedef window pager;
9054 ripley 24
typedef window dataeditor;
28991 murdoch 25
typedef window editor;
4394 ripley 26
 
40927 ripley 27
 
28
 
4394 ripley 29
void
43795 ripley 30
setconsoleoptions(const char *fnname,int fnsty, int fnpoints,
24577 ripley 31
		  int rows, int cols, int consx, int consy,
46784 murdoch 32
		  rgb *nguiColors,
11588 ripley 33
		  int pgr, int pgc, int multiplewindows, int widthonresize,
51948 murdoch 34
		  int bufbytes, int buflines, int buffered, int cursor_blink);
44016 ripley 35
pager newpager(const char *title, const char *filename, int enc,
36
	       const char *header, int unlinkonexit);
4394 ripley 37
console newconsole(char *name, int flags);
43767 ripley 38
int  consolereads(console c, const char *prompt, char *buf, int len,
4394 ripley 39
		  int addtohistory);
41771 ripley 40
int  consolewrites(console c, const char *s);
4394 ripley 41
int  consolecancopy(console c);
42
int  consolecanpaste(console c);
43
void consolecopy(console c);
44
void consolepaste(console c);
28544 murdoch 45
void consolepastecmds(console c);
4394 ripley 46
void consoleselectall(console c);
43795 ripley 47
void consolecmd(console c, const char *cmd);
28991 murdoch 48
void consolenewline(console c);
44201 ripley 49
void consolehelp(void);
4394 ripley 50
void consolesetbrk(console c, actionfn, char ch, char mod);
51
void consoletogglelazy(console c);
52
int  consolegetlazy(console c);
53
void consoleflush(console c);
54
void consoleprint(console c);
17261 ripley 55
void consolesavefile(console c, int pager);
9212 ripley 56
void drawconsole(control c, rect r);
10227 ripley 57
void consoleclear(control c);
4405 ripley 58
 
59
extern int setWidthOnResize;
37860 ripley 60
extern int consolebuffered;
4405 ripley 61
int consolecols(console c);
21959 ripley 62
void pagerbclose(control m);