Skip to content

Commit

Permalink
windows: added back windows related putty files
Browse files Browse the repository at this point in the history
References: jira SCB-8086
  • Loading branch information
manner82 committed Oct 7, 2016
1 parent 42bbfaf commit e435358
Show file tree
Hide file tree
Showing 2 changed files with 1,293 additions and 0 deletions.
37 changes: 37 additions & 0 deletions windows/winstuff.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#ifndef PUTTY_WINSTUFF_H
#define PUTTY_WINSTUFF_H

#include <windows.h>
#include <stdio.h> /* for FILENAME_MAX */

#include "charset.h"

struct Filename {
char path[FILENAME_MAX];
};

struct FontSpec {
char name[64];
int isbold;
int height;
int charset;
};

typedef void *Context; /* FIXME: probably needs changing */

#define SEL_NL { 13, 10 }

#define TICKSPERSEC 1000 /* GetTickCount returns milliseconds */
#define CURSORBLINK GetCaretBlinkTime()
#define DEFAULT_CODEPAGE CP_ACP

#define GETTICKCOUNT GetTickCount

/*
* Exports from unicode.c.
*/
struct unicode_data;
int init_ucs(struct unicode_data *ucsdata, const char *line_codepage,
int utf8_override, int font_charset, int vtmode);

#endif
Loading

0 comments on commit e435358

Please sign in to comment.