TODO: http://www120.pair.com/mccarthy/nextstep/intro.htmld/Workspace.html is the correct nextstep look.
WISH: OnTheSpot editing, or maybe switch to miiiiiiif
WISH: just for fun, do shade and tint with XRender.
+WISH: make builtin character glyphs optional
- optionally embed a perl interpreter, which can be used for more
intelligent/customized selection support, visual feedback,
Colon-separated list of perl extension scripts to use in this terminal
instance. Each extension is looked up in the library directories, loaded
-if necessary, and bound to the current terminal instance; option B<-pe>.
+if necessary, and bound to the current terminal instance. If this resource
+is empty or missing, then the perl interpreter will not be initialized;
+option B<-pe>.
=item B<perl-eval>: I<string>
#endif
#if ENABLE_PERL
- rxvt_perl.init ();
+ if (rs[Rs_perl_ext] && *rs[Rs_perl_ext])
+ {
+ rxvt_perl.init ();
+ PERL_INVOKE ((this, HOOK_INIT, DT_END));
+ }
#endif
- PERL_INVOKE ((this, HOOK_INIT, DT_END));
-
create_windows (argc, argv);
dDisp;
term->self = (void *)newSVptr ((void *)term, "urxvt::term");
hv_store ((HV *)SvRV ((SV *)term->self), "_overlay", 8, newRV_noinc ((SV *)newHV ()), 0);
}
+ else if (!term->self)
+ return false; // perl not initialized for this instance
else if (htype == HOOK_DESTROY)
{
// handled later
set_hookname (SEL_EXTEND);
set_hookname (SEL_MAKE);
set_hookname (SEL_GRAB);
- set_hookname (SEL_CLICK);
set_hookname (FOCUS_IN);
set_hookname (FOCUS_OUT);
set_hookname (VIEW_CHANGE);
set_hookname (REFRESH_BEGIN);
set_hookname (REFRESH_END);
set_hookname (KEYBOARD_COMMAND);
- set_hookname (MOUSE_CLICK);
- set_hookname (MOUSE_MOVE);
export_const (DEFAULT_RSTYLE);
export_const (OVERLAY_RSTYLE);