From: Simon Tatham Date: Mon, 14 Oct 2002 09:06:31 +0000 (+0000) Subject: SEL_NL is different between Windows and Unix; move it out into the X-Git-Tag: r8855-g4f798d~2151 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=fcae9c5ef27d62873ef4063e306ac1df31de4498;p=PuTTY_svn.git SEL_NL is different between Windows and Unix; move it out into the platform-specific header files. git-svn-id: http://svn.tartarus.org/sgt/putty@2043 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/putty.h b/putty.h index f2c10ba6..793e9763 100644 --- a/putty.h +++ b/putty.h @@ -99,8 +99,6 @@ typedef struct backend_tag Backend; #define ATTR_CUR_AND (~(ATTR_BOLD|ATTR_REVERSE|ATTR_BLINK|ATTR_COLOURS)) #define ATTR_CUR_XOR 0x00BA0000UL -#define SEL_NL { 13, 10 } - GLOBAL int rows, cols, savelines; GLOBAL int has_focus; diff --git a/unix/unix.h b/unix/unix.h index 28f7b180..d4c3328f 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -16,6 +16,11 @@ extern Backend pty_backend; */ #define SELECTION_NUL_TERMINATED 0 +/* + * Under X, copying to the clipboard terminates lines with just LF. + */ +#define SEL_NL { 10 } + /* Simple wraparound timer function */ unsigned long getticks(void); /* based on gettimeofday(2) */ #define GETTICKCOUNT getticks diff --git a/winstuff.h b/winstuff.h index 8c994c03..d5c08a20 100644 --- a/winstuff.h +++ b/winstuff.h @@ -64,6 +64,11 @@ GLOBAL HINSTANCE hinst; */ #define SELECTION_NUL_TERMINATED 1 +/* + * On Windows, copying to the clipboard terminates lines with CRLF. + */ +#define SEL_NL { 13, 10 } + /* * Exports from winctrls.c. */