The R Project SVN R

Rev

Rev 46784 | Rev 83703 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46784 Rev 51948
Line 40... Line 40...
40
    int   kind;			/* console or pager */
40
    int   kind;			/* console or pager */
41
    int   rows, cols;		/* dimension in char */
41
    int   rows, cols;		/* dimension in char */
42
    int   w, h;			/* dimensions in pixel */
42
    int   w, h;			/* dimensions in pixel */
43
 
43
 
44
    font  f;			/* font */
44
    font  f;			/* font */
45
    int   fw, fh;
45
    int   fw, fh;  
46
    int   top, right;           /* borders */
46
    int   top, right;           /* borders */
47
    rgb   guiColors[numGuiColors]; /* colours */
47
    rgb   guiColors[numGuiColors]; /* colours */
48
    int   fv, fc;		/* first line and first char visible */
48
    int   fv, fc;		/* first line and first char visible */
49
    int   r, c;			/* cursor position */
49
    int   r, c;			/* cursor position */
50
    int   overwrite;		/* overwrite mode */
50
    int   overwrite;		/* overwrite mode */
Line 64... Line 64...
64
    int   input, cur_pos, max_pos, 
64
    int   input, cur_pos, max_pos, 
65
	prompt_len, prompt_wid; /* editing */
65
	prompt_len, prompt_wid; /* editing */
66
 
66
 
67
    char  chbrk, modbrk;	/* hook for user's break */
67
    char  chbrk, modbrk;	/* hook for user's break */
68
    void  (*fbrk) ();
68
    void  (*fbrk) ();
-
 
69
    
-
 
70
    int cursor_blink;
69
 
71
 
70
    menuitem mcopy, mpaste, mpastecmds, mpopcopy, mpoppaste, mpoppastecmds;
72
    menuitem mcopy, mpaste, mpastecmds, mpopcopy, mpoppaste, mpoppastecmds;
71
};
73
};
72
 
74
 
73
typedef struct structConsoleData *ConsoleData;
75
typedef struct structConsoleData *ConsoleData;
Line 99... Line 101...
99
#define prompt_len (p->prompt_len)
101
#define prompt_len (p->prompt_len)
100
#define prompt_wid (p->prompt_wid)
102
#define prompt_wid (p->prompt_wid)
101
#define CURROW  (p->r)  /* row of cursor */
103
#define CURROW  (p->r)  /* row of cursor */
102
#define CURCOL  (p->c)  /* column of cursor on whole line */
104
#define CURCOL  (p->c)  /* column of cursor on whole line */
103
 
105
 
104
#define WRITELINE(i, j) writeline(p, i, j)
106
#define WRITELINE(i, j) writeline(c, p, i, j)
105
 
107
 
106
#define REDRAW drawconsole(c, getrect(c))
108
#define REDRAW drawconsole(c, getrect(c))
107
 
109
 
108
 
110
 
109
#define RSHOW(r) {gbitblt(c, p->bm, topleft(r), r);}
111
#define RSHOW(r) {gbitblt(c, p->bm, topleft(r), r);}
110
 
112
 
111
ConsoleData newconsoledata(font f, int rows, int cols,
113
ConsoleData newconsoledata(font f, int rows, int cols,
112
    int bufbytes, int buflines,
114
    int bufbytes, int buflines,
113
    rgb *guiColors, int kind, int buffered);
115
    rgb *guiColors, int kind, int buffered, int cursor_blink);
114
 
116
 
115
void freeConsoleData(ConsoleData p);
117
void freeConsoleData(ConsoleData p);
116
void setfirstvisible(control c, int fv);
118
void setfirstvisible(control c, int fv);
117
void setfirstcol(control c, int newcol);
119
void setfirstcol(control c, int newcol);
118
void console_sbf(control c, int pos);
120
void console_sbf(control c, int pos);