mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-06 22:12:47 -05:00
End of a night's work. Not a very useful state, but this is my branch and
I'll do what I want with it. Anyway, made a start on a Mac display for the terminal emulator, and the enumeration of the global variables that will have to die. Oh, and the licence is now in a TEXT resource -- I just have to work out how to display it... [originally from svn r53]
This commit is contained in:
18
putty.h
18
putty.h
@ -59,6 +59,24 @@ typedef HDC Context;
|
||||
#define GLOBAL extern
|
||||
#endif
|
||||
|
||||
struct session {
|
||||
/* Display state */
|
||||
int rows, cols, savelines;
|
||||
int font_width, font_height;
|
||||
int has_focus;
|
||||
/* Buffers */
|
||||
unsigned char inbuf[INBUF_SIZE];
|
||||
int inbuf_head, inbuf_reap;
|
||||
unsigned char outbuf[OUTBUF_SIZE];
|
||||
int outbuf_head, outbuf_reap;
|
||||
/* Emulator state */
|
||||
int app_cursor_keys, app_keypad_keys;
|
||||
/* Backend */
|
||||
Backend *back;
|
||||
/* Config that created this session */
|
||||
Config cfg;
|
||||
}
|
||||
|
||||
GLOBAL int rows, cols, savelines;
|
||||
|
||||
GLOBAL int font_width, font_height;
|
||||
|
Reference in New Issue
Block a user