]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
SEL_NL is different between Windows and Unix; move it out into the
authorSimon Tatham <anakin@pobox.com>
Mon, 14 Oct 2002 09:06:31 +0000 (09:06 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 14 Oct 2002 09:06:31 +0000 (09:06 +0000)
platform-specific header files.

[originally from svn r2043]

putty.h
unix/unix.h
winstuff.h

diff --git a/putty.h b/putty.h
index f2c10ba6d8320911ffef75076aeee8781c6250a3..793e9763dad4e228b458bd6b5e85002579b8eda2 100644 (file)
--- 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;
index 28f7b18080664256b9689fd387de615d8cb8c63a..d4c3328f1a229b4d6d4f13a2d0b8d1f5104224a5 100644 (file)
@@ -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
index 8c994c03079c9a00e091d37917c9669ed3691631..d5c08a20342b1c6d6dbbd53d91d1808f98bcb435 100644 (file)
@@ -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.
  */