1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-06 22:12:47 -05:00

Bloody Hell! It just managed to say "Hello, world" in a terminal window!

I'd better check this lot in before something bad happens to it.

[originally from svn r56]
This commit is contained in:
Ben Harris
1999-02-21 18:09:41 +00:00
parent 7c491e865f
commit 8ac1a08339
5 changed files with 207 additions and 55 deletions

41
putty.h
View File

@ -6,6 +6,7 @@
#ifdef macintosh
#include <MacTypes.h>
typedef UInt32 DWORD;
struct mac_session;
#endif /* macintosh */
#ifndef TRUE
@ -41,7 +42,8 @@ typedef UInt32 DWORD;
#define CHAR_MASK 0x000000FFUL
#ifdef macintosh
typedef void *Context; /* Temporarily until I work out what it should really be */
struct mac_session;
typedef struct mac_session *Context;
#else /* not macintosh */
typedef HDC Context;
#endif /* not macintosh */
@ -59,24 +61,6 @@ 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;
@ -171,6 +155,25 @@ typedef struct {
GLOBAL Config cfg;
typedef struct {
/* 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;
} Session;
/*
* Exports from window.c.
*/