or changed rxvt behaviour to make it more compatible to xterm (usually
xfree86's xterm).
-TODO: VERIFY bugfix for keyboard.C changes.
-TODO: maybe just output the error and continue on x errors
+TODO: manpage 900mb update
+TODO: openbsd
+checking for int16_t... ./configure[13497]: test: 2: unexpected operator/operand
+ short
+checking for uint16_t... ./configure[13579]: test: 2: unexpected operator/operand
+unsigned short
+checking for int32_t... ./configure[13661]: test: 4: unexpected operator/operand
+ int
+checking for uint32_t... ./configure[13743]: test: 4: unexpected operator/operand
+unsigned int
+checking return type of signal handlers... void
+./configure[13848]: break: cannot break
+TODO: maybe just output the error and continue on x errors, especially for XIM-management
TODO: safer command: keymap processing.
TODO: read property sequence is broken with respect to utf-8 etc.
WISH: keyboard modification via esc-sequences.
/* Define if you have the <assert.h> header file. */
#undef HAVE_ASSERT_H
+/* Define if you have the <clocale> header file. */
+#undef HAVE_CLOCALE
+
+/* Define if you have the <cwchar> header file. */
+#undef HAVE_CWCHAR
+
/* Define if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define if you have the <utmpx.h> header file. */
#undef HAVE_UTMPX_H
+/* Define if you have the <wchar.h> header file. */
+#undef HAVE_WCHAR_H
+
/* Define if you have the Xft library (-lXft). */
#undef HAVE_LIBXFT
utmpx.h \
stdint.h \
pty.h \
+ wchar.h \
+ cwchar \
+ clocale \
)
AC_HEADER_TIME
AC_DEFUN(RXVT_CHECK_SIZE,
[AC_CACHE_CHECK([for $2], $1,
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdint.h>]], [[$2 dummy;]])],[$1=yes],[dnl
-if test $ac_cv_sizeof_char -ge $3; then
+if test "$ac_cv_sizeof_char" -ge $3; then
$1="$4 char"
else
- if test $ac_cv_sizeof_short -ge $3; then
+ if test "$ac_cv_sizeof_short" -ge $3; then
$1="$4 short"
else
- if test $ac_cv_sizeof_int -ge $3; then
+ if test "$ac_cv_sizeof_int" -ge $3; then
$1="$4 int"
else
- if test $ac_cv_sizeof_long -ge $3; then
+ if test "$ac_cv_sizeof_long" -ge $3; then
$1="$4 long"
else
- if test $ac_cv_sizeof_long_long -ge $3; then
+ if test "$ac_cv_sizeof_long_long" -ge $3; then
$1="$4 long long"
else
$1="$4 $5" # we _must_ have a (possibly wrong) default
dnl#
dnl# Now look for another we use
dnl#
-if test $ac_cv_sizeof_int_p -eq 8; then
+if test "$ac_cv_sizeof_int_p" -eq 8; then
rxvt_intp_define="#define intp_t int64_t"
rxvt_u_intp_define="#define u_intp_t u_int64_t"
else
- if test $ac_cv_sizeof_int_p -eq 4; then
+ if test "$ac_cv_sizeof_int_p" -eq 4; then
rxvt_intp_define="#define intp_t int32_t"
rxvt_u_intp_define="#define u_intp_t u_int32_t"
else
- if test $ac_cv_sizeof_int_p -eq 2; then
+ if test "$ac_cv_sizeof_int_p" -eq 2; then
rxvt_intp_define="#define intp_t int16_t"
rxvt_u_intp_define="#define u_intp_t u_int16_t"
else
+
+
+
utmpx.h \
stdint.h \
pty.h \
+ wchar.h \
+ cwchar \
+ clocale \
do
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 2; then
+if test "$ac_cv_sizeof_char" -ge 2; then
rxvt_cv_int16_t=" char"
else
- if test $ac_cv_sizeof_short -ge 2; then
+ if test "$ac_cv_sizeof_short" -ge 2; then
rxvt_cv_int16_t=" short"
else
- if test $ac_cv_sizeof_int -ge 2; then
+ if test "$ac_cv_sizeof_int" -ge 2; then
rxvt_cv_int16_t=" int"
else
- if test $ac_cv_sizeof_long -ge 2; then
+ if test "$ac_cv_sizeof_long" -ge 2; then
rxvt_cv_int16_t=" long"
else
- if test $ac_cv_sizeof_long_long -ge 2; then
+ if test "$ac_cv_sizeof_long_long" -ge 2; then
rxvt_cv_int16_t=" long long"
else
rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 2; then
+if test "$ac_cv_sizeof_char" -ge 2; then
rxvt_cv_uint16_t="unsigned char"
else
- if test $ac_cv_sizeof_short -ge 2; then
+ if test "$ac_cv_sizeof_short" -ge 2; then
rxvt_cv_uint16_t="unsigned short"
else
- if test $ac_cv_sizeof_int -ge 2; then
+ if test "$ac_cv_sizeof_int" -ge 2; then
rxvt_cv_uint16_t="unsigned int"
else
- if test $ac_cv_sizeof_long -ge 2; then
+ if test "$ac_cv_sizeof_long" -ge 2; then
rxvt_cv_uint16_t="unsigned long"
else
- if test $ac_cv_sizeof_long_long -ge 2; then
+ if test "$ac_cv_sizeof_long_long" -ge 2; then
rxvt_cv_uint16_t="unsigned long long"
else
rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 4; then
+if test "$ac_cv_sizeof_char" -ge 4; then
rxvt_cv_int32_t=" char"
else
- if test $ac_cv_sizeof_short -ge 4; then
+ if test "$ac_cv_sizeof_short" -ge 4; then
rxvt_cv_int32_t=" short"
else
- if test $ac_cv_sizeof_int -ge 4; then
+ if test "$ac_cv_sizeof_int" -ge 4; then
rxvt_cv_int32_t=" int"
else
- if test $ac_cv_sizeof_long -ge 4; then
+ if test "$ac_cv_sizeof_long" -ge 4; then
rxvt_cv_int32_t=" long"
else
- if test $ac_cv_sizeof_long_long -ge 4; then
+ if test "$ac_cv_sizeof_long_long" -ge 4; then
rxvt_cv_int32_t=" long long"
else
rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-if test $ac_cv_sizeof_char -ge 4; then
+if test "$ac_cv_sizeof_char" -ge 4; then
rxvt_cv_uint32_t="unsigned char"
else
- if test $ac_cv_sizeof_short -ge 4; then
+ if test "$ac_cv_sizeof_short" -ge 4; then
rxvt_cv_uint32_t="unsigned short"
else
- if test $ac_cv_sizeof_int -ge 4; then
+ if test "$ac_cv_sizeof_int" -ge 4; then
rxvt_cv_uint32_t="unsigned int"
else
- if test $ac_cv_sizeof_long -ge 4; then
+ if test "$ac_cv_sizeof_long" -ge 4; then
rxvt_cv_uint32_t="unsigned long"
else
- if test $ac_cv_sizeof_long_long -ge 4; then
+ if test "$ac_cv_sizeof_long_long" -ge 4; then
rxvt_cv_uint32_t="unsigned long long"
else
rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
fi
fi
-if test $ac_cv_sizeof_int_p -eq 8; then
+if test "$ac_cv_sizeof_int_p" -eq 8; then
rxvt_intp_define="#define intp_t int64_t"
rxvt_u_intp_define="#define u_intp_t u_int64_t"
else
- if test $ac_cv_sizeof_int_p -eq 4; then
+ if test "$ac_cv_sizeof_int_p" -eq 4; then
rxvt_intp_define="#define intp_t int32_t"
rxvt_u_intp_define="#define u_intp_t u_int32_t"
else
- if test $ac_cv_sizeof_int_p -eq 2; then
+ if test "$ac_cv_sizeof_int_p" -eq 2; then
rxvt_intp_define="#define intp_t int16_t"
rxvt_u_intp_define="#define u_intp_t u_int16_t"
else
<code>default</code> to indicate that the default-colour escape sequence is to be
used), <code>bg</code> is the colour code used as default background colour (or the
string <code>default</code>), and <code>xpm</code> is the string <code>default</code> if rxvt
-was compiled with XPM support. Libraries like <code>slang</code> can (and do) use
-this information to optimize screen output.
+was compiled with XPM support. Libraries like <code>ncurses</code> and <code>slang</code> can
+(and do) use this information to optimize screen output.
</dd>
<p></p>
<dt><strong><a name="item_windowid"><strong>WINDOWID</strong></a></strong><br />
.\" ========================================================================
.\"
.IX Title "rxvt 1"
-.TH rxvt 1 "2005-02-11" "5.0" "RXVT-UNICODE"
+.TH rxvt 1 "2005-02-12" "5.0" "RXVT-UNICODE"
.SH "NAME"
rxvt\-unicode (ouR XVT, unicode) \- (a VT102 emulator for the X window system)
.SH "SYNOPSIS"
\&\f(CW\*(C`default\*(C'\fR to indicate that the default-colour escape sequence is to be
used), \f(CW\*(C`bg\*(C'\fR is the colour code used as default background colour (or the
string \f(CW\*(C`default\*(C'\fR), and \f(CW\*(C`xpm\*(C'\fR is the string \f(CW\*(C`default\*(C'\fR if @@RXVT_NAME@@
-was compiled with \s-1XPM\s0 support. Libraries like \f(CW\*(C`slang\*(C'\fR can (and do) use
-this information to optimize screen output.
+was compiled with \s-1XPM\s0 support. Libraries like \f(CW\*(C`ncurses\*(C'\fR and \f(CW\*(C`slang\*(C'\fR can
+(and do) use this information to optimize screen output.
.IP "\fB\s-1WINDOWID\s0\fR" 4
.IX Item "WINDOWID"
Set to the (decimal) X Window \s-1ID\s0 of the @@RXVT_NAME@@ window (the toplevel
string "default" to indicate that the default-colour escape sequence
is to be used), "bg" is the colour code used as default background
colour (or the string "default"), and "xpm" is the string "default"
- if rxvt was compiled with XPM support. Libraries like "slang" can
- (and do) use this information to optimize screen output.
+ if rxvt was compiled with XPM support. Libraries like "ncurses" and
+ "slang" can (and do) use this information to optimize screen output.
WINDOWID
Set to the (decimal) X Window ID of the rxvt window (the toplevel
# include "keyboard.h"
#endif
-#include <cwchar>
#include <csignal>
/*----------------------------------------------------------------------*/
#include <sys/wait.h>
#include <sys/stat.h>
-#include <cwchar>
+#if HAVE_CWCHAR
+# include <cwchar>
+#elsif HAVE_WCHAR_H
+# include <wchar.h>
+#else
+// stdlib.h might provide it
+#endif
#include "ptytty.h"
#include <X11/Xmd.h> /* get the typedef for CARD32 */
#include <inttypes.h>
-#include <wchar.h>
#include "salloc.C" // HACK, should be a seperate compile!