mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-08 18:28:43 +00:00
OpenBSD local changes
This commit is contained in:
@@ -816,6 +816,8 @@ Tinput(void)
|
||||
|
||||
#else /* VMS */
|
||||
XFD_COPYSET(&Select_mask, &Tselect_mask);
|
||||
if (need_cleanup)
|
||||
Cleanup(0);
|
||||
if (Select(max_plus1, &Tselect_mask, NULL, NULL, NULL) < 0) {
|
||||
if (errno != EINTR)
|
||||
SysError(ERROR_TSELECT);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
! $XTermId: XTerm.ad,v 1.81 2006/06/24 14:34:45 tom Exp $
|
||||
! $XFree86: xc/programs/xterm/XTerm.ad,v 3.37 2006/04/10 00:34:36 dickey Exp $
|
||||
|
||||
*scrollBar: true
|
||||
*saveLines: 1024
|
||||
|
||||
*SimpleMenu*BackingStore: NotUseful
|
||||
@@ -186,3 +187,27 @@
|
||||
!
|
||||
! Alternatively,
|
||||
!*on2Clicks: regex [[:alpha:]]+://([[:alnum:]!#+,./=?@_~-]|(%[[:xdigit:]][[:xdigit:]]))+
|
||||
|
||||
! Uncomment this to have a login shell by default
|
||||
!*VT100*login_shell: true
|
||||
|
||||
!This can be useful if you have an IntelliMouse. It maps the button
|
||||
!events generated by the wheel
|
||||
*VT100*translations: #override \
|
||||
!Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\
|
||||
!Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\
|
||||
!Lock @Num_Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\
|
||||
! @Num_Lock Ctrl <Btn4Down>: scroll-back(1,halfpage) \n\
|
||||
<Btn4Down>: scroll-back(5,line) \n\
|
||||
!Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\
|
||||
!Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\
|
||||
!Lock @Num_Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\
|
||||
! @Num_Lock Ctrl <Btn5Down>: scroll-forw(1,halfpage) \n\
|
||||
<Btn5Down>: scroll-forw(5,line)
|
||||
|
||||
! Restore the traditional backarrow/delete key behaviour
|
||||
! The delete key should generate DEL
|
||||
*deleteIsDEL: true
|
||||
! and the back arrow generates whatever the erase char is set to
|
||||
*ptyInitialErase: true
|
||||
*backarrowKeyIsErase: true
|
||||
|
||||
@@ -122,6 +122,7 @@ extern EventMode eventMode;
|
||||
|
||||
extern XtermWidget term;
|
||||
|
||||
|
||||
extern SIG_ATOMIC_T need_cleanup;
|
||||
|
||||
#if defined(HAVE_XKB_BELL_EXT)
|
||||
|
||||
@@ -772,8 +772,13 @@ static XtResource application_resources[] =
|
||||
Bres("sunFunctionKeys", "SunFunctionKeys", sunFunctionKeys, False),
|
||||
#endif
|
||||
#if OPT_INITIAL_ERASE
|
||||
#ifndef __OpenBSD__
|
||||
Bres("ptyInitialErase", "PtyInitialErase", ptyInitialErase, DEF_INITIAL_ERASE),
|
||||
Bres("backarrowKeyIsErase", "BackarrowKeyIsErase", backarrow_is_erase, DEF_BACKARO_ERASE),
|
||||
#else
|
||||
Bres("ptyInitialErase", "PtyInitialErase", ptyInitialErase, DEF_INITIAL_ERASE),
|
||||
Bres("backarrowKeyIsErase", "BackarrowKeyIsErase", backarrow_is_erase, DEF_BACKARO_ERASE),
|
||||
#endif
|
||||
#endif
|
||||
Bres("waitForMap", "WaitForMap", wait_for_map, False),
|
||||
Bres("useInsertMode", "UseInsertMode", useInsertMode, False),
|
||||
|
||||
@@ -144,6 +144,9 @@
|
||||
#undef USE_PTY_SEARCH
|
||||
#elif defined(PUCC_PTYD)
|
||||
#undef USE_PTY_SEARCH
|
||||
#elif defined(__OpenBSD__)
|
||||
#undef USE_PTY_SEARCH
|
||||
#undef USE_PTY_DEVICE
|
||||
#elif (defined(sun) && defined(SVR4)) || defined(_ALL_SOURCE) || defined(__CYGWIN__)
|
||||
#undef USE_PTY_SEARCH
|
||||
#endif
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
#define XTERM_PATCH 216
|
||||
|
||||
#ifndef __vendorversion__
|
||||
#define __vendorversion__ "XTerm"
|
||||
#define __vendorversion__ "XTerm/OpenBSD"
|
||||
#endif
|
||||
|
||||
@@ -164,6 +164,8 @@ authorization.
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#define USE_UTMP_SETGID TRUE
|
||||
#define USE_OPENPTY TRUE
|
||||
#define DEFDELETE_DEL TRUE
|
||||
#define DEF_BACKARO_ERASE TRUE
|
||||
#define DEF_INITIAL_ERASE TRUE
|
||||
@@ -174,6 +176,10 @@ authorization.
|
||||
#define OPT_SCO_FUNC_KEYS 1
|
||||
#endif
|
||||
|
||||
#if defined(__OpenBSD__)
|
||||
#define DEFDELETE_DEL TRUE
|
||||
#endif
|
||||
|
||||
#if defined(__SCO__) || defined(SVR4) || defined(_POSIX_SOURCE) || defined(__QNX__) || defined(__hpux) || (defined(BSD) && (BSD >= 199103)) || defined(__CYGWIN__)
|
||||
#define USE_POSIX_WAIT
|
||||
#endif
|
||||
@@ -777,7 +783,7 @@ extern SIGNAL_T Exit (int /* n */);
|
||||
#endif
|
||||
|
||||
#ifndef SIG_ATOMIC_T
|
||||
#define SIG_ATOMIC_T int
|
||||
#define SIG_ATOMIC_T volatile sig_atomic_t
|
||||
#endif
|
||||
|
||||
#if OPT_WIDE_CHARS
|
||||
|
||||
@@ -4647,3 +4647,22 @@ Jason Bacon,
|
||||
Stephen P. Wall,
|
||||
David Wexelblat, and
|
||||
Thomas Dickey (XFree86 Project).
|
||||
.SH OPENBSD SPECIFICS
|
||||
On OpenBSD, the following resources have different default values:
|
||||
.TP 8
|
||||
.B deleteIsDEL: true
|
||||
The Delete key generates \fB^?\fP.
|
||||
.TP 8
|
||||
.B ptyInitialErase: true
|
||||
The erase character for the tty is inherited from the parent
|
||||
process setting, generally \fB^?\fP.
|
||||
.TP 8
|
||||
.B backarrowKeyIsErase: true
|
||||
The back arrow key is set to return the erase character defined in the
|
||||
tty, generally \fB^?\fP.
|
||||
.PP
|
||||
Moreover, on OpenBSD the
|
||||
.IR termcap(5)
|
||||
entry for xterm defines the
|
||||
.I kb
|
||||
capability as \fB^?\fP
|
||||
|
||||
Reference in New Issue
Block a user