mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 18:07:59 +00:00
03aa22be3c
This introduces a new front-end function, do_scroll(), which is expected to scroll a part of the physical display and cause repaint events for any areas that couldn't be scrolled (e.g. because they were hidden). scroll_display() is a wrapper around this which also updates disptext to match. Currently, scroll_display is only used in response to user scrollback requests (via term_scroll()), but extending scroll() to use it as well should be easy. All of this is conditional on the front end's defining OPTIMISE_SCROLL, since only the Mac front end currently implements do_scroll(). [originally from svn r2242]
32 lines
711 B
C
32 lines
711 B
C
/*
|
|
* macstuff.h -- Mac-specific definitions visible to the rest of PuTTY.
|
|
*/
|
|
|
|
typedef void *Context; /* FIXME */
|
|
|
|
/*
|
|
* On the Mac, Unicode text copied to the clipboard has U+2028 line separators.
|
|
* Non-Unicode text will have these converted to CR along with the rest of the
|
|
* content.
|
|
*/
|
|
#define SEL_NL { 0x2028 }
|
|
|
|
|
|
#include <Events.h> /* Timing related goo */
|
|
|
|
#define GETTICKCOUNT TickCount
|
|
#define CURSORBLINK GetCaretTime()
|
|
#define TICKSPERSEC 60
|
|
|
|
#define DEFAULT_CODEPAGE 0 /* FIXME: no idea how to do this */
|
|
|
|
#define WCHAR wchar_t
|
|
#define BYTE unsigned char
|
|
|
|
#define OPTIMISE_SCROLL
|
|
|
|
/* To make it compile */
|
|
|
|
#include <stdarg.h>
|
|
extern int vsnprintf(char *, size_t, char const *, va_list);
|