-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: rxvt-unicode-sixel
action: commit
revision:
path_from:
revision_from: 053313ee2de407095d1ca0e8b7328da6458dc452:
path_to:
revision_to:

git.thebackupbox.net

rxvt-unicode-sixel

git://git.thebackupbox.net/rxvt-unicode-sixel

commit 053313ee2de407095d1ca0e8b7328da6458dc452
Author: Marc Lehmann <schmorp@schmorp.de>
Date:   Wed Jan 4 02:37:30 2006 +0000

    *** empty log message ***

diff --git a/Changes b/Changes

index e57b3f38a880300f02e4195b6b66ad4379d19c55..

index ..d6c1c68fc259d9a0bf0c6cd7525c1631a5180c9b 100644

--- a/Changes
+++ b/Changes
@@ -8,23 +8,31 @@ TODO: http://www120.pair.com/mccarthy/nextstep/intro.htmld/Workspace.html is the
 WISH: OnTheSpot editing, or maybe switch to miiiiiiif
 WISH: just for fun, do shade and tint with XRender.
 WISH: make builtin character glyphs optional
-WISH: better support for mixing xft font sizes rxvt -fn "xft:Andale Mono:size=15" -fb "xft:Andale Mono:size=8:bold"

+SECURITY FIX: systems using openpty (most BSDs) had wrong permissions
+on the tty. Systems using unix pty's (such as GNU/Linux) were not
+affected. Apart from this, the meta8 option is no longer forcefully
+enabled. New features: urxvt now supports embedded perl, which can already
+do useful things and will certainly be extended in the future.
+
+6.3
         - SECURITY FIX: on systems using openpty, permissions were
           not correctly updated on the tty device and were left as
           world-readable and world-writable (likely in original rxvt,
-          too), and were not restored properly (same as xterm here).
-          Affected are only systems using non-unix ptys (such as most
-          BSDs, not GNU/Linux).
+          too), and were not restored properly. Affected are only systems
+          using non-unix ptys (such as most BSDs, not GNU/Linux).
         - meta8 support was forcefully enabled in most configurations.
           restored configurability of this (useless) feature (reported
-          by Mikachu)
+          by Mikachu).
         - optionally embed a perl interpreter, which can be used for more
           intelligent/customized selection support, visual feedback,
           menus, tabs etc. See the the urxvtperl manpage, the -pe option,
           perl*-resources and keysym resources. Not everything is there yet.
         - try to be more clever about differing font sizes and their ascent.
+          Not guarenteed to work, but works better in most cases now.
         - fix directory permissions on install.
+TODO    - implemented option to disable built-in line drawing characters
+          and fall back to the font ones (patch by Martin Pohlack).
         - disabled sched_yield support: the linux version is just too useless
           (it schedules nice'd processes before the own one for extended
           periods). Too bad, it could reduce system time by a factor of 5 here.
diff --git a/MANIFEST b/MANIFEST

index a50c52501dbabb76709867057bc3450bad648e19..

index ..e8e2c8a01951350ad86d89b608797a1c339bb8e2 100644

--- a/MANIFEST
+++ b/MANIFEST
@@ -75,6 +75,7 @@ src/encoding.h
 src/fdpass.h
 src/fdpass.C
 src/feature.h
+src/hookinc.h
 src/init.C
 src/init.h
 src/iom.C
diff --git a/src/hookinc.h b/src/hookinc.h
new file mode 100644
index 0000000000000000000000000000000000000000..84526d281158cd0a72957dde29960063b2f0d43a
--- /dev/null
+++ b/src/hookinc.h
@@ -0,0 +1,29 @@
+// all supported hooks
+
+  def (INIT)
+  def (DESTROY)
+  def (RESET)
+  def (START)
+
+  def (SEL_BEGIN)
+  def (SEL_EXTEND)
+  def (SEL_MAKE)
+  def (SEL_GRAB)
+
+  def (SEL_CLICK)
+
+  def (FOCUS_IN)
+  def (FOCUS_OUT)
+
+  def (VIEW_CHANGE)
+  def (SCROLL_BACK)
+  def (TTY_ACTIVITY)
+  def (OSC_SEQ)
+
+  def (REFRESH_BEGIN)
+  def (REFRESH_END)
+
+  def (KEYBOARD_COMMAND)
+
+  def (MOUSE_CLICK)
+  def (MOUSE_MOVE)
diff --git a/src/rsinc.h b/src/rsinc.h

index bb6ede0071c8ce60d533f7917d2ded095a670cc4..

index ..6b1de3f122bcbff5b7e60e18e616214ca7d132f2 100644

--- a/src/rsinc.h
+++ b/src/rsinc.h
@@ -1,110 +1,110 @@
 // all resource indices, used by rxvt.h anf rxvtperl.xs

-  Rs_def(display_name)
-  Rs_def(term_name)
-  Rs_def(iconName)
-  Rs_def(geometry)
-  Rs_def(reverseVideo)
-  Rs_def(color)
-  Rs_reserve(color, NRS_COLORS)
-  Rs_def(font)
+  def (display_name)
+  def (term_name)
+  def (iconName)
+  def (geometry)
+  def (reverseVideo)
+  def (color)
+  reserve (color, NRS_COLORS)
+  def (font)
 #if ENABLE_STYLES
-  Rs_def(boldFont)
-  Rs_def(italicFont)
-  Rs_def(boldItalicFont)
-  Rs_def(intensityStyles)
+  def (boldFont)
+  def (italicFont)
+  def (boldItalicFont)
+  def (intensityStyles)
 #endif
-  Rs_def(name)
-  Rs_def(title)
+  def (name)
+  def (title)
 #if defined (XPM_BACKGROUND) || (MENUBAR_MAX)
-  Rs_def(path)
+  def (path)
 #endif
 #ifdef XPM_BACKGROUND
-  Rs_def(backgroundPixmap)
+  def (backgroundPixmap)
 #endif
 #if (MENUBAR_MAX)
-  Rs_def(menu)
+  def (menu)
 #endif
-  Rs_def(loginShell)
-  Rs_def(jumpScroll)
+  def (loginShell)
+  def (jumpScroll)
 #ifdef HAVE_SCROLLBARS
-  Rs_def(scrollBar)
-  Rs_def(scrollBar_right)
-  Rs_def(scrollBar_floating)
-  Rs_def(scrollBar_align)
-  Rs_def(scrollstyle)
-  Rs_def(scrollBar_thickness)
-#endif
-  Rs_def(scrollTtyOutput)
-  Rs_def(scrollTtyKeypress)
-  Rs_def(scrollWithBuffer)
-  Rs_def(saveLines)
-  Rs_def(utmpInhibit)
-  Rs_def(visualBell)
+  def (scrollBar)
+  def (scrollBar_right)
+  def (scrollBar_floating)
+  def (scrollBar_align)
+  def (scrollstyle)
+  def (scrollBar_thickness)
+#endif
+  def (scrollTtyOutput)
+  def (scrollTtyKeypress)
+  def (scrollWithBuffer)
+  def (saveLines)
+  def (utmpInhibit)
+  def (visualBell)
 #if ! defined(NO_MAPALERT) && defined(MAPALERT_OPTION)
-  Rs_def(mapAlert)
+  def (mapAlert)
 #endif
 #ifdef META8_OPTION
-  Rs_def(meta8)
+  def (meta8)
 #endif
 #ifdef MOUSE_WHEEL
-  Rs_def(mouseWheelScrollPage)
+  def (mouseWheelScrollPage)
 #endif
 #ifndef NO_BACKSPACE_KEY
-  Rs_def(backspace_key)
+  def (backspace_key)
 #endif
 #ifndef NO_DELETE_KEY
-  Rs_def(delete_key)
+  def (delete_key)
 #endif
-  Rs_def(selectstyle)
+  def (selectstyle)
 #ifdef PRINTPIPE
-  Rs_def(print_pipe)
+  def (print_pipe)
 #endif
 #ifdef USE_XIM
-  Rs_def(preeditType)
-  Rs_def(inputMethod)
+  def (preeditType)
+  def (inputMethod)
 #endif
 #ifdef TRANSPARENT
-  Rs_def(transparent)
-  Rs_def(transparent_all)
+  def (transparent)
+  def (transparent_all)
 #endif
 #if ENABLE_FRILLS
-  Rs_def(pty_fd)
-  Rs_def(hold)
-  Rs_def(ext_bwidth)
-  Rs_def(int_bwidth)
-  Rs_def(borderLess)
-  Rs_def(lineSpace)
-  Rs_def(cursorUnderline)
+  def (pty_fd)
+  def (hold)
+  def (ext_bwidth)
+  def (int_bwidth)
+  def (borderLess)
+  def (lineSpace)
+  def (cursorUnderline)
 #endif
 #if CURSOR_BLINK
-  Rs_def(cursorBlink)
+  def (cursorBlink)
 #endif
 #if ENABLE_XEMBED
-  Rs_def(embed)
-#endif
-  Rs_def(cutchars)
-  Rs_def(modifier)
-  Rs_def(answerbackstring)
-  Rs_def(tripleclickwords)
-  Rs_def(insecure)
-  Rs_def(pointerBlank)
-  Rs_def(pointerBlankDelay)
-  Rs_def(imLocale)
-  Rs_def(imFont)
-  Rs_def(pastableTabs)
+  def (embed)
+#endif
+  def (cutchars)
+  def (modifier)
+  def (answerbackstring)
+  def (tripleclickwords)
+  def (insecure)
+  def (pointerBlank)
+  def (pointerBlankDelay)
+  def (imLocale)
+  def (imFont)
+  def (pastableTabs)
 #ifndef NO_SECONDARY_SCREEN
-  Rs_def(secondaryScreen)
-  Rs_def(secondaryScroll)
+  def (secondaryScreen)
+  def (secondaryScroll)
 #endif
 #ifdef OFF_FOCUS_FADING
-  Rs_def(fade)
+  def (fade)
 #endif
 #ifdef TINTING
-  Rs_def(shade)
+  def (shade)
 #endif
 #if ENABLE_PERL
-  Rs_def(perl_eval)
-  Rs_def(perl_ext)
-  Rs_def(perl_lib)
+  def (perl_eval)
+  def (perl_ext)
+  def (perl_lib)
 #endif
diff --git a/src/rxvt.h b/src/rxvt.h

index 3dca1c1503d84fc0f70601012582c75ad9abfb90..

index ..d3209cd78ef06718077cd905adae072346e66e1c 100644

--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -559,11 +559,11 @@ enum colour_list {
  * Resource list
  */
 enum {
-#define Rs_def(name) Rs_ ## name,
-#define Rs_reserve(name,count) Rs_ ## name ## _ = Rs_ ## name + (count) - 1,
-#include "rsinc.h"
-#undef Rs_def
-#undef Rs_reserve
+# define def(name) Rs_ ## name,
+# define reserve(name,count) Rs_ ## name ## _ = Rs_ ## name + (count) - 1,
+# include "rsinc.h"
+# undef def
+# undef reserve
   NUM_RESOURCES
 };

diff --git a/src/rxvtperl.h b/src/rxvtperl.h

index 99327e5365a9a8257562237dfbb4b20516e56c18..

index ..d59ba368fcd3e057854d98b5afd6bcfe85bfcbea 100644

--- a/src/rxvtperl.h
+++ b/src/rxvtperl.h
@@ -20,34 +20,9 @@ enum data_type {
 };

 enum hook_type {
-  HOOK_INIT    = 0, // special, hardcoded
-  HOOK_DESTROY = 1, // values in urxvt.pm
-  HOOK_RESET,
-  HOOK_START,
-
-  HOOK_SEL_BEGIN,
-  HOOK_SEL_EXTEND,
-  HOOK_SEL_MAKE,
-  HOOK_SEL_GRAB,
-
-  HOOK_SEL_CLICK,
-
-  HOOK_FOCUS_IN,
-  HOOK_FOCUS_OUT,
-
-  HOOK_VIEW_CHANGE,
-  HOOK_SCROLL_BACK,
-  HOOK_TTY_ACTIVITY,
-  HOOK_OSC_SEQ,
-
-  HOOK_REFRESH_BEGIN,
-  HOOK_REFRESH_END,
-
-  HOOK_KEYBOARD_COMMAND,
-
-  HOOK_MOUSE_CLICK,
-  HOOK_MOUSE_MOVE,
-
+# define def(sym) HOOK_ ## sym,
+# include "hookinc.h"
+# undef def
   HOOK_NUM,
 };

diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs

index 8949d3b8d84585c931d479391b0b36a44cfa0cda..

index ..bc0864957cee3be39e6e5f612d3d9167dfb80c1a 100644

--- a/src/rxvtperl.xs
+++ b/src/rxvtperl.xs
@@ -503,26 +503,11 @@ PROTOTYPES: ENABLE

 BOOT:
 {
-# define set_hookname(sym) av_store (hookname, PP_CONCAT(HOOK_, sym), newSVpv (PP_STRINGIFY(sym), 0))
 # define export_const(name) newCONSTSUB (gv_stashpv ("urxvt", 1), #name, newSViv (name));
   AV *hookname = get_av ("urxvt::HOOKNAME", 1);
-  set_hookname (INIT);
-  set_hookname (RESET);
-  set_hookname (START);
-  set_hookname (DESTROY);
-  set_hookname (SEL_BEGIN);
-  set_hookname (SEL_EXTEND);
-  set_hookname (SEL_MAKE);
-  set_hookname (SEL_GRAB);
-  set_hookname (FOCUS_IN);
-  set_hookname (FOCUS_OUT);
-  set_hookname (VIEW_CHANGE);
-  set_hookname (SCROLL_BACK);
-  set_hookname (TTY_ACTIVITY);
-  set_hookname (OSC_SEQ);
-  set_hookname (REFRESH_BEGIN);
-  set_hookname (REFRESH_END);
-  set_hookname (KEYBOARD_COMMAND);
+# define def(sym) av_store (hookname, HOOK_ ## sym, newSVpv (# sym, 0));
+# include "hookinc.h"
+# undef def

   export_const (DEFAULT_RSTYLE);
   export_const (OVERLAY_RSTYLE);
@@ -833,11 +818,11 @@ rxvt_term::_resource (char *name, int index, SV *newval = 0)
 	PPCODE:
 {
 	struct resval { const char *name; int value; } rslist [] = {
-#	  define Rs_def(name) { # name, Rs_ ## name },
-#	  define Rs_reserve(name,count)
+#	  define def(name) { # name, Rs_ ## name },
+#	  define reserve(name,count)
 #	  include "rsinc.h"
-#	  undef Rs_def
-#	  undef Rs_reserve
+#	  undef def
+#	  undef reserve
         };

         struct resval *rs = rslist + sizeof (rslist) / sizeof (rslist [0]);

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 09:52:47 2024