#undef ENCODING_KR
/* Define if you want chinese codesets */
-#undef ENCODING_CN
+#undef ENCODING_ZH
/* Define if you want extended chinese codesets */
-#undef ENCODING_CN_EXT
+#undef ENCODING_ZH_EXT
/* Define if you don't need to use our replacement string functions */
#undef NO_STRINGS
AC_DEFINE(ENABLE_COMBINING, 1, Define if you want to automatically compose combining characters)
fi
if test x$codesets = xall; then
- codesets=jp,jp-ext,kr,cn,cn-ext
+ codesets=jp,jp-ext,kr,zh,zh-ext
fi
AC_DEFINE(ENCODING_EU, 1, Define if you want european extended codesets)
AC_DEFINE(ENCODING_VN, 1, Define if you want vietnamese codesets)
JP ) AC_DEFINE(ENCODING_JP, 1, Define if you want japanese codesets) ;;
JP_EXT ) AC_DEFINE(ENCODING_JP_EXT, 1, Define if you want extended japanese codesets) ;;
KR ) AC_DEFINE(ENCODING_KR, 1, Define if you want korean codesets) ;;
- CN ) AC_DEFINE(ENCODING_CN, 1, Define if you want chinese codesets) ;;
- CN_EXT ) AC_DEFINE(ENCODING_CN_EXT, 1, Define if you want extended chinese codesets) ;;
+ ZH ) AC_DEFINE(ENCODING_ZH, 1, Define if you want chinese codesets) ;;
+ ZH_EXT ) AC_DEFINE(ENCODING_ZH_EXT, 1, Define if you want extended chinese codesets) ;;
esac
done
fi
if test x$codesets = xall; then
- codesets=jp,jp-ext,kr,cn,cn-ext
+ codesets=jp,jp-ext,kr,zh,zh-ext
fi
cat >>confdefs.h <<\_ACEOF
#define ENCODING_KR 1
_ACEOF
;;
- CN )
+ ZH )
cat >>confdefs.h <<\_ACEOF
-#define ENCODING_CN 1
+#define ENCODING_ZH 1
_ACEOF
;;
- CN_EXT )
+ ZH_EXT )
cat >>confdefs.h <<\_ACEOF
-#define ENCODING_CN_EXT 1
+#define ENCODING_ZH_EXT 1
_ACEOF
;;
esac
void
rxvt_term::flush ()
{
+ flush_ev.stop ();
+
#ifdef TRANSPARENT
if (want_full_refresh)
{
}
display->flush ();
-
- flush_ev.stop ();
}
void
}
#endif
-#ifdef USE_XIM
- if (XFilterEvent (&ev, None))
- return;
-#endif
-
Window unused_root, unused_child;
int unused_root_x, unused_root_y;
unsigned int unused_mask;
break;
}
#endif
- if ((priv_modes & PrivMode_mouse_report) && ! (bypass_keystate))
+ if ((priv_modes & PrivMode_mouse_report) && !bypass_keystate)
break;
if (ev.xany.window == TermWin.vt)
XQueryPointer (display->display, TermWin.vt,
&unused_root, &unused_child,
&unused_root_x, &unused_root_y,
- & (ev.xbutton.x), & (ev.xbutton.y),
- &unused_mask);
+ &ev.xbutton.x, &ev.xbutton.y,
+ &ev.xbutton.state);
#ifdef MOUSE_THRESHOLD
/* deal with a `jumpy' mouse */
if ((ev.xmotion.time - MEvent.time) > MOUSE_THRESHOLD)
}
#endif
selection_extend (ev.xbutton.x, ev.xbutton.y,
- (ev.xbutton.state & Button3Mask) ? 2 : 0);
+ ev.xbutton.state & Button3Mask ? 2 : 0);
+
#ifdef SELECTION_SCROLLING
if (ev.xbutton.y < TermWin.int_bwidth
|| Pixel2Row (ev.xbutton.y) > (TermWin.nrow-1))
selection_save_state = (ev.xbutton.state & Button3Mask) ? 2 : 0;
/* calc number of lines to scroll */
- if (ev.xbutton.y<TermWin.int_bwidth)
+ if (ev.xbutton.y < TermWin.int_bwidth)
{
scroll_selection_dir = UP;
dist = TermWin.int_bwidth - ev.xbutton.y;
else if (isScrollbarWindow (ev.xany.window) && scrollbar_isMotion ())
{
while (XCheckTypedWindowEvent (display->display, scrollBar.win,
- MotionNotify, &ev)) ;
+ MotionNotify, &ev))
+ ;
+
XQueryPointer (display->display, scrollBar.win,
&unused_root, &unused_child,
&unused_root_x, &unused_root_y,
- & (ev.xbutton.x), & (ev.xbutton.y),
+ &ev.xbutton.x, &ev.xbutton.y,
&unused_mask);
scr_move_to (scrollbar_position (ev.xbutton.y) - csrO,
scrollbar_size ());
#endif
clickintime = ev.time - MEvent.time < MULTICLICK_TIME;
+
if (reportmode)
{
/* mouse report from vt window */
{
if (ev.button != MEvent.button)
MEvent.clicks = 0;
+
switch (ev.button)
{
case Button1:
+ /* allow meta + click to select rectangular areas */
+ /* should be done in screen.C */
+#if ENABLE_FRILLS
+ selection.rect = !! (ev.state & ModMetaMask);
+#else
+ selection.rect = false;
+#endif
+
/* allow shift+left click to extend selection */
if (ev.state & ShiftMask && ! (priv_modes & PrivMode_mouse_report))
{
#include "table/ksc5601_1987_0.h"
-//#define ENCODING_CN
+//#define ENCODING_ZH
#include "table/gb2312_1980_0.h"
#include "table/big5.h"
-//#define ENCODING_CN_EXT
+//#define ENCODING_ZH_EXT
#include "table/cns11643_1992_1.h"
#include "table/cns11643_1992_2.h"
__DATA__
VN viscii viscii
KR ksc5601_1987_0 ksc5601-raw
-CN gb2312_1980_0 gb2312-raw
-CN_EXT cns11643_1992_1 cns11643-1
-CN_EXT cns11643_1992_2 cns11643-2
-CN_EXT cns11643_1992_3 cns11643-3
-CN_EXT cns11643_1992_4 cns11643-4
-CN_EXT cns11643_1992_5 cns11643-5
-CN_EXT cns11643_1992_6 cns11643-6
-CN_EXT cns11643_1992_7 cns11643-7
-CN_EXT cns11643_1992_f cns11643-f
-CN big5 big5
-CN_EXT big5_ext big5ext
-CN_EXT big5_plus big5plus
+ZH gb2312_1980_0 gb2312-raw
+ZH_EXT cns11643_1992_1 cns11643-1
+ZH_EXT cns11643_1992_2 cns11643-2
+ZH_EXT cns11643_1992_3 cns11643-3
+ZH_EXT cns11643_1992_4 cns11643-4
+ZH_EXT cns11643_1992_5 cns11643-5
+ZH_EXT cns11643_1992_6 cns11643-6
+ZH_EXT cns11643_1992_7 cns11643-7
+ZH_EXT cns11643_1992_f cns11643-f
+ZH big5 big5
+ZH_EXT big5_ext big5ext
+ZH_EXT big5_plus big5plus
EU koi8_r koi8-r
EU koi8_u koi8-u
DEFAULT iso8859_1 iso-8859-1
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN
+#ifdef ENCODING_ZH
static const uint16_t big5_f_0[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t big5_ext_f_0[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t big5_plus_f_0[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_1_f_78[] = {
0x4421, 0x4423, 0x0000, 0x4424, 0x0000, 0x0000, 0x0000, 0x0000, 0x4437, 0x4435, 0x4438, 0x4436,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_2_f_78[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2126, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_3_f_52[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_4_f_52[] = {
0x0000, 0x2224, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_5_f_52[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_6_f_52[] = {
0x222c, 0x0000, 0x0000, 0x0000, 0x2130, 0x2123, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_7_f_69[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN_EXT
+#ifdef ENCODING_ZH_EXT
static const uint16_t cns11643_1992_f_f_54[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
//
// AUTOMATICALLLY GENERATED by gentables
//
-#ifdef ENCODING_CN
+#ifdef ENCODING_ZH
static const uint16_t gb2312_1980_0_f_0[] = {
0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
#if ENCODING_KR
"+kr"
#endif
-#if ENCODING_CN
- "+cn"
+#if ENCODING_ZH
+ "+zh"
#endif
-#if ENCODING_CN_EXT
- "+cn-ext"
+#if ENCODING_ZH_EXT
+ "+zh-ext"
#endif
","
#if OFF_FOCUS_FADING