summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-01-06 20:32:00 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-01-06 20:32:00 +0000
commitf286ef5103033a8f3e0aa75ee2fd273734020ae5 (patch)
treea9e2bf8966fcb64ec3735076dfac0af413875808
parent9b5f06699b9877e2be67456bd961f05bc16b5c21 (diff)
Disable allowFontOps, allowTcapOps and allowWindowOps by default
on OpenBSD.
-rw-r--r--app/xterm/charproc.c6
-rw-r--r--app/xterm/xterm.man6
2 files changed, 8 insertions, 4 deletions
diff --git a/app/xterm/charproc.c b/app/xterm/charproc.c
index ee592f481..556c4ba5d 100644
--- a/app/xterm/charproc.c
+++ b/app/xterm/charproc.c
@@ -389,10 +389,10 @@ static XtActionsRec actionsList[] = {
static XtResource resources[] =
{
Bres(XtNallowSendEvents, XtCAllowSendEvents, screen.allowSendEvent0, False),
- Bres(XtNallowFontOps, XtCAllowFontOps, screen.allowFontOp0, True),
- Bres(XtNallowTcapOps, XtCAllowTcapOps, screen.allowTcapOp0, True),
+ Bres(XtNallowFontOps, XtCAllowFontOps, screen.allowFontOp0, False),
+ Bres(XtNallowTcapOps, XtCAllowTcapOps, screen.allowTcapOp0, False),
Bres(XtNallowTitleOps, XtCAllowTitleOps, screen.allowTitleOp0, True),
- Bres(XtNallowWindowOps, XtCAllowWindowOps, screen.allowWindowOp0, True),
+ Bres(XtNallowWindowOps, XtCAllowWindowOps, screen.allowWindowOp0, False),
Bres(XtNaltIsNotMeta, XtCAltIsNotMeta, screen.alt_is_not_meta, False),
Bres(XtNaltSendsEscape, XtCAltSendsEscape, screen.alt_sends_esc, False),
Bres(XtNalwaysBoldMode, XtCAlwaysBoldMode, screen.always_bold_mode, False),
diff --git a/app/xterm/xterm.man b/app/xterm/xterm.man
index d99a686de..22deec87b 100644
--- a/app/xterm/xterm.man
+++ b/app/xterm/xterm.man
@@ -5100,8 +5100,12 @@ Thomas Dickey (invisible-island.net).
.SH OPENBSD SPECIFICS
On OpenBSD, the following resources have different default values:
.TP 8
+.B allowFontOps: false
+.TP 8
+.B allowTcapOps: false
+.TP 8
.B allowWindowOps: false
-Extended window control sequences are disabled.
+Various, potentially dangerous, extended window control sequences are disabled.
.TP 8
.B deleteIsDEL: true
The Delete key generates \fB^?\fP.