1 |
|
/* |
2 |
|
* clip_unix.cpp - Clipboard handling, Unix implementation |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-1999 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2000 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
23 |
|
#include <X11/Xlib.h> |
24 |
|
|
25 |
|
#include "clip.h" |
26 |
+ |
#include "prefs.h" |
27 |
|
|
28 |
|
#define DEBUG 0 |
29 |
|
#include "debug.h" |
53 |
|
0xaf, 0x20, 0xb7, 0xb0, 0xb8, 0x22, 0xb8, 0x20 |
54 |
|
}; |
55 |
|
|
56 |
+ |
// Flag: Don't convert clipboard text |
57 |
+ |
static bool no_clip_conversion; |
58 |
+ |
|
59 |
|
|
60 |
|
/* |
61 |
|
* Initialization |
63 |
|
|
64 |
|
void ClipInit(void) |
65 |
|
{ |
66 |
+ |
no_clip_conversion = PrefsFindBool("noclipconversion"); |
67 |
|
} |
68 |
|
|
69 |
|
|
99 |
|
if (c < 0x80) { |
100 |
|
if (c == 13) // CR -> LF |
101 |
|
c = 10; |
102 |
< |
} else |
102 |
> |
} else if (!no_clip_conversion) |
103 |
|
c = mac2iso[c & 0x7f]; |
104 |
|
*q++ = c; |
105 |
|
} |