diff options
author | sf-exg <sf-exg> | 2014-08-16 10:51:23 +0000 |
---|---|---|
committer | sf-exg <sf-exg> | 2014-08-16 10:51:23 +0000 |
commit | aa8fb072ce9e3816bd89914770d783a6209423a4 (patch) | |
tree | 9be5bc42f19935a546a55d2156a3d339c0b4cb3f | |
parent | b1d84710debec466a72264923edea5573e6c7df6 (diff) |
Add -mc option and multiClickTime resource, patch by Joe Peterson.
-rw-r--r-- | src/command.h | 66 | ||||
-rw-r--r-- | src/optinc.h | 69 |
2 files changed, 135 insertions, 0 deletions
diff --git a/src/command.h b/src/command.h new file mode 100644 index 0000000..cf356c4 --- /dev/null +++ b/src/command.h @@ -0,0 +1,66 @@ +/* + * command.h + */ + +#ifndef COMMAND_H_ +#define COMMAND_H_ + +#define ESC_ARGS 32 /* max # of args for esc sequences */ + +#ifndef SCROLLBAR_INITIAL_DELAY +# define SCROLLBAR_INITIAL_DELAY 0.33 +#endif +#ifndef SCROLLBAR_CONTINUOUS_DELAY +# define SCROLLBAR_CONTINUOUS_DELAY 0.05 +#endif + +#ifdef SCROLL_ON_SHIFT +# define SCROLL_SHIFTKEY (shft) +# define NOSCROLL_SHIFTKEY 0 +#else +# define SCROLL_SHIFTKEY 0 +# define NOSCROLL_SHIFTKEY (shft) +#endif +#ifdef SCROLL_ON_CTRL +# define SCROLL_CTRLKEY (ctrl) +# define NOSCROLL_CTRLKEY 0 +#else +# define SCROLL_CTRLKEY 0 +# define NOSCROLL_CTRLKEY (ctrl) +#endif +#ifdef SCROLL_ON_META +# define SCROLL_METAKEY (meta) +# define NOSCROLL_METAKEY 0 +#else +# define SCROLL_METAKEY 0 +# define NOSCROLL_METAKEY (meta) +#endif +#define IS_SCROLL_MOD ((SCROLL_SHIFTKEY || SCROLL_CTRLKEY || SCROLL_METAKEY) \ + && (!NOSCROLL_SHIFTKEY && !NOSCROLL_CTRLKEY && !NOSCROLL_METAKEY)) + + +/* + * ESC-Z processing: + * + * By stealing a sequence to which other xterms respond, and sending the + * same number of characters, but having a distinguishable sequence, + * we can avoid having a timeout (when not under an rxvt) for every login + * shell to auto-set its DISPLAY. + * + * This particular sequence is even explicitly stated as obsolete since + * about 1985, so only very old software is likely to be confused, a + * confusion which can likely be remedied through termcap or TERM. Frankly, + * I doubt anyone will even notice. We provide a #ifdef just in case they + * don't care about auto-display setting. Just in case the ancient + * software in question is broken enough to be case insensitive to the 'c' + * character in the answerback string, we make the distinguishing + * characteristic be capitalization of that character. The length of the + * two strings should be the same so that identical read (2) calls may be + * used. + */ +#define VT100_ANS "\033[?1;2c" /* vt100 answerback */ +#ifndef ESCZ_ANSWER +# define ESCZ_ANSWER VT100_ANS /* obsolete ANSI ESC[c */ +#endif + +#endif /* _COMMAND_H_ */ diff --git a/src/optinc.h b/src/optinc.h new file mode 100644 index 0000000..09f9a26 --- /dev/null +++ b/src/optinc.h @@ -0,0 +1,69 @@ +// all resource indices, used by rxvt.h and rxvtperl.xs + + def(loginShell) + def(multiClickTime) + def(iconic) + def(visualBell) + def(mapAlert) + def(reverseVideo) + def(utmpInhibit) + def(scrollBar) + def(scrollBar_right) + def(scrollBar_floating) + def(meta8) + def(scrollTtyOutput) + def(scrollTtyKeypress) + def(transparent) + def(tripleclickwords) + def(scrollWithBuffer) + def(jumpScroll) + def(skipScroll) + def(mouseWheelScrollPage) +#if POINTER_BLANK + def(pointerBlank) +#else + nodef(pointerBlank) +#endif + def(cursorBlink) + def(secondaryScreen) + def(secondaryScroll) + def(pastableTabs) + def(cursorUnderline) +#if ENABLE_FRILLS + def(insecure) // insecure esc sequences + def(borderLess) // mwm borderless hints + def(hold) // hold window open after exit + def(override_redirect) + def(urgentOnBell) +#else + nodef(insecure) + nodef(borderLess) + nodef(hold) + nodef(override_redirect) + nodef(urgentOnBell) +#endif +#ifdef BUILTIN_GLYPHS + def(skipBuiltinGlyphs) // do not use internal glyphs +#else + nodef(skipBuiltinGlyphs) +#endif +#if ENABLE_STYLES + def(intensityStyles) // font styles imply intensity +#else + nodef(intensityStyles) +#endif +#if ISO_14755 + def(iso14755) + def(iso14755_52) +#else + nodef(iso14755) + nodef(iso14755_52) +#endif + def(console) +#if XFT + def(buffered) +#else + nodef(buffered) +#endif + def(dockapp) + |