2014-10-20 10:46:47 +02:00
|
|
|
|
---
|
|
|
|
|
aclocal.m4 | 40 +++++++------
|
|
|
|
|
configure | 41 +++++++------
|
|
|
|
|
configure.in | 1
|
|
|
|
|
include/curses.h.in | 3
|
|
|
|
|
include/termcap.h.in | 2
|
|
|
|
|
include/tic.h | 4 -
|
|
|
|
|
man/man_db.renames | 2
|
|
|
|
|
man/ncurses.3x | 4 +
|
|
|
|
|
misc/gen-pkgconfig.in | 9 ++
|
|
|
|
|
misc/ncurses-config.in | 2
|
|
|
|
|
misc/terminfo.src | 131 ++++++++++++++++++++++++++++++++++---------
|
|
|
|
|
ncurses/Makefile.in | 2
|
|
|
|
|
ncurses/curses.priv.h | 2
|
|
|
|
|
ncurses/run_cmd.sh | 11 +++
|
|
|
|
|
ncurses/tinfo/MKfallback.sh | 10 ++-
|
|
|
|
|
ncurses/tinfo/access.c | 27 ++++++++
|
|
|
|
|
ncurses/tinfo/lib_setup.c | 3
|
|
|
|
|
ncurses/tinfo/read_entry.c | 2
|
|
|
|
|
ncurses/tinfo/read_termcap.c | 21 ++++--
|
|
|
|
|
test/test.priv.h | 4 -
|
|
|
|
|
20 files changed, 241 insertions(+), 80 deletions(-)
|
|
|
|
|
|
2011-03-04 16:47:46 +01:00
|
|
|
|
--- aclocal.m4
|
|
|
|
|
+++ aclocal.m4 2010-10-11 13:57:42.000000000 +0000
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -523,7 +523,7 @@ AC_MSG_CHECKING([for size of bool])
|
2011-03-04 16:47:46 +01:00
|
|
|
|
AC_CACHE_VAL(cf_cv_type_of_bool,[
|
|
|
|
|
rm -f cf_test.out
|
|
|
|
|
AC_TRY_RUN([
|
|
|
|
|
-#include <stdlib.h>
|
|
|
|
|
+//#include <stdlib.h> // conflict with exit declaration
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4405,12 +4405,15 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
echo '? missing rename for '\$cf_source
|
|
|
|
|
cf_target="\$cf_source"
|
|
|
|
|
fi
|
|
|
|
|
- cf_target="\$cf_subdir\${section}/\${cf_target}"
|
|
|
|
|
-
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
+for t in \$cf_target; do
|
|
|
|
|
+ t="\$cf_subdir\${section}/\${t}"
|
|
|
|
|
+CF_EOF
|
|
|
|
|
+
|
|
|
|
|
+cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
sed -f $cf_man_alias \\
|
|
|
|
|
CF_EOF
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4420,7 +4423,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
CF_EOF
|
|
|
|
|
else
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- < \$i >\$TMP
|
|
|
|
|
+ < \$i | sed -f $srcdir/edit_man.sed >\$TMP
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4460,7 +4463,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
mv \$TMP.$cf_so_strip \$TMP
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
- cf_target="\$cf_target.$cf_so_strip"
|
|
|
|
|
+ t="\$t.$cf_so_strip"
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4469,23 +4472,23 @@ case "$MANPAGE_FORMAT" in #(vi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
if test \$form = format ; then
|
|
|
|
|
# BSDI installs only .0 suffixes in the cat directories
|
|
|
|
|
- cf_target="\`echo \$cf_target|sed -e 's/\.[[1-9]]\+[[a-z]]*/.0/'\`"
|
|
|
|
|
+ t="\`echo \$t|sed -e 's/\.[[1-9]]\+[[a-z]]*/.0/'\`"
|
|
|
|
|
fi
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- suffix=\`basename \$cf_target | sed -e 's%^[[^.]]*%%'\`
|
|
|
|
|
+ suffix=\`basename \$t | sed -e 's%^[[^.]]*%%'\`
|
|
|
|
|
if test \$verb = installing ; then
|
|
|
|
|
- echo \$verb \$cf_target
|
|
|
|
|
- \$INSTALL_DATA \$TMP \$cf_target
|
|
|
|
|
+ echo \$verb \$t
|
|
|
|
|
+ \$INSTALL_DATA \$TMP \$t
|
|
|
|
|
test -d \$cf_subdir\${section} &&
|
|
|
|
|
test -n "\$aliases" && (
|
|
|
|
|
cd \$cf_subdir\${section} && (
|
|
|
|
|
- cf_source=\`echo \$cf_target |sed -e 's%^.*/\([[^/]][[^/]]*/[[^/]][[^/]]*$\)%\1%'\`
|
|
|
|
|
+ cf_source=\`echo \$t |sed -e 's%^.*/\([[^/]][[^/]]*/[[^/]][[^/]]*$\)%\1%'\`
|
|
|
|
|
test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
|
|
|
|
|
- cf_target=\`basename \$cf_target\`
|
|
|
|
|
+ t=\`basename \$t\`
|
|
|
|
|
for cf_alias in \$aliases
|
|
|
|
|
do
|
|
|
|
|
if test \$section = 1 ; then
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4494,7 +4497,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
if test "$MANPAGE_SYMLINKS" = yes ; then
|
|
|
|
|
if test -f \$cf_alias\${suffix} ; then
|
|
|
|
|
- if ( cmp -s \$cf_target \$cf_alias\${suffix} )
|
|
|
|
|
+ if ( cmp -s \$t \$cf_alias\${suffix} )
|
|
|
|
|
then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4504,18 +4507,18 @@ CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
case "x$LN_S" in #(vi
|
|
|
|
|
*-f) #(vi
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- $LN_S \$cf_target \$cf_alias\${suffix}
|
|
|
|
|
+ $LN_S \$t \$cf_alias\${suffix}
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
rm -f \$cf_alias\${suffix}
|
|
|
|
|
- $LN_S \$cf_target \$cf_alias\${suffix}
|
|
|
|
|
+ $LN_S \$t \$cf_alias\${suffix}
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
|
|
|
|
|
+ elif test "\$t" != "\$cf_alias\${suffix}" ; then
|
|
|
|
|
echo ".so \$cf_source" >\$TMP
|
|
|
|
|
CF_EOF
|
|
|
|
|
if test -n "$cf_compress" ; then
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4535,9 +4538,9 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
elif test \$verb = removing ; then
|
|
|
|
|
- test -f \$cf_target && (
|
|
|
|
|
- echo \$verb \$cf_target
|
|
|
|
|
- rm -f \$cf_target
|
|
|
|
|
+ test -f \$t && (
|
|
|
|
|
+ echo \$verb \$t
|
|
|
|
|
+ rm -f \$t
|
|
|
|
|
)
|
|
|
|
|
test -d \$cf_subdir\${section} &&
|
|
|
|
|
test -n "\$aliases" && (
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4557,6 +4560,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# echo ".hy 0"
|
|
|
|
|
cat \$TMP
|
|
|
|
|
fi
|
|
|
|
|
+done
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
|
--- configure.in
|
2012-06-26 12:51:01 +02:00
|
|
|
|
+++ configure.in 2012-01-30 16:31:47.000000000 +0000
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -1851,6 +1851,7 @@ if test "$with_termlib" != no ; then
|
2012-01-30 18:08:01 +01:00
|
|
|
|
TINFO_LDFLAGS="-L${LIB_DIR}"
|
2011-03-04 16:47:46 +01:00
|
|
|
|
SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
|
|
|
|
|
fi
|
|
|
|
|
+ TINFO_ARGS="$TINFO_ARGS -L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
|
|
|
|
|
else
|
|
|
|
|
# the next lines are needed for linking libtic over libncurses
|
|
|
|
|
TINFO_NAME=${LIB_NAME}
|
|
|
|
|
--- configure
|
2012-06-26 12:51:01 +02:00
|
|
|
|
+++ configure 2012-01-30 16:42:40.000000000 +0000
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5611,7 +5611,7 @@ irix*) #(vi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
fi
|
|
|
|
|
;;
|
|
|
|
|
linux*|gnu*|k*bsd*-gnu) #(vi
|
|
|
|
|
- LD_RPATH_OPT="-Wl,-rpath,"
|
|
|
|
|
+ LD_RPATH_OPT="-Wl,-rpath-link,"
|
|
|
|
|
;;
|
2011-11-18 13:03:18 +01:00
|
|
|
|
openbsd[2-9].*|mirbsd*) #(vi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
LD_RPATH_OPT="-Wl,-rpath,"
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -10937,12 +10937,15 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
echo '? missing rename for '\$cf_source
|
|
|
|
|
cf_target="\$cf_source"
|
|
|
|
|
fi
|
|
|
|
|
- cf_target="\$cf_subdir\${section}/\${cf_target}"
|
|
|
|
|
-
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
+for t in \$cf_target; do
|
|
|
|
|
+ t="\$cf_subdir\${section}/\${t}"
|
|
|
|
|
+CF_EOF
|
|
|
|
|
+
|
|
|
|
|
+cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
sed -f $cf_man_alias \\
|
|
|
|
|
CF_EOF
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -10952,7 +10955,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
CF_EOF
|
|
|
|
|
else
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- < \$i >\$TMP
|
|
|
|
|
+ < \$i | sed -f $srcdir/edit_man.sed >\$TMP
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -10992,7 +10995,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
mv \$TMP.$cf_so_strip \$TMP
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
- cf_target="\$cf_target.$cf_so_strip"
|
|
|
|
|
+ t="\$t.$cf_so_strip"
|
|
|
|
|
CF_EOF
|
|
|
|
|
fi
|
|
|
|
|
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -11001,23 +11004,23 @@ case "$MANPAGE_FORMAT" in #(vi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
if test \$form = format ; then
|
|
|
|
|
# BSDI installs only .0 suffixes in the cat directories
|
|
|
|
|
- cf_target="\`echo \$cf_target|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
|
|
|
|
|
+ t="\`echo \$t|sed -e 's/\.[1-9]\+[a-z]*/.0/'\`"
|
|
|
|
|
fi
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- suffix=\`basename \$cf_target | sed -e 's%^[^.]*%%'\`
|
|
|
|
|
+ suffix=\`basename \$t | sed -e 's%^[^.]*%%'\`
|
|
|
|
|
if test \$verb = installing ; then
|
|
|
|
|
- echo \$verb \$cf_target
|
|
|
|
|
- \$INSTALL_DATA \$TMP \$cf_target
|
|
|
|
|
+ echo \$verb \$t
|
|
|
|
|
+ \$INSTALL_DATA \$TMP \$t
|
|
|
|
|
test -d \$cf_subdir\${section} &&
|
|
|
|
|
test -n "\$aliases" && (
|
|
|
|
|
cd \$cf_subdir\${section} && (
|
|
|
|
|
- cf_source=\`echo \$cf_target |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
|
|
|
|
|
+ cf_source=\`echo \$t |sed -e 's%^.*/\([^/][^/]*/[^/][^/]*$\)%\1%'\`
|
|
|
|
|
test -n "$cf_so_strip" && cf_source=\`echo \$cf_source |sed -e 's%\.$cf_so_strip\$%%'\`
|
|
|
|
|
- cf_target=\`basename \$cf_target\`
|
|
|
|
|
+ t=\`basename \$t\`
|
|
|
|
|
for cf_alias in \$aliases
|
|
|
|
|
do
|
|
|
|
|
if test \$section = 1 ; then
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -11026,7 +11029,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
if test "$MANPAGE_SYMLINKS" = yes ; then
|
|
|
|
|
if test -f \$cf_alias\${suffix} ; then
|
|
|
|
|
- if ( cmp -s \$cf_target \$cf_alias\${suffix} )
|
|
|
|
|
+ if ( cmp -s \$t \$cf_alias\${suffix} )
|
|
|
|
|
then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -11036,18 +11039,18 @@ CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
case "x$LN_S" in #(vi
|
|
|
|
|
*-f) #(vi
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- $LN_S \$cf_target \$cf_alias\${suffix}
|
|
|
|
|
+ $LN_S \$t \$cf_alias\${suffix}
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
rm -f \$cf_alias\${suffix}
|
|
|
|
|
- $LN_S \$cf_target \$cf_alias\${suffix}
|
|
|
|
|
+ $LN_S \$t \$cf_alias\${suffix}
|
|
|
|
|
CF_EOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
cat >>$cf_edit_man <<CF_EOF
|
|
|
|
|
- elif test "\$cf_target" != "\$cf_alias\${suffix}" ; then
|
|
|
|
|
+ elif test "\$t" != "\$cf_alias\${suffix}" ; then
|
|
|
|
|
echo ".so \$cf_source" >\$TMP
|
|
|
|
|
CF_EOF
|
|
|
|
|
if test -n "$cf_compress" ; then
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -11067,9 +11070,9 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
elif test \$verb = removing ; then
|
|
|
|
|
- test -f \$cf_target && (
|
|
|
|
|
- echo \$verb \$cf_target
|
|
|
|
|
- rm -f \$cf_target
|
|
|
|
|
+ test -f \$t && (
|
|
|
|
|
+ echo \$verb \$t
|
|
|
|
|
+ rm -f \$t
|
|
|
|
|
)
|
|
|
|
|
test -d \$cf_subdir\${section} &&
|
|
|
|
|
test -n "\$aliases" && (
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -11089,6 +11092,7 @@ cat >>$cf_edit_man <<CF_EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# echo ".hy 0"
|
|
|
|
|
cat \$TMP
|
|
|
|
|
fi
|
|
|
|
|
+done
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
done
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -21178,6 +21182,7 @@ if test "$with_termlib" != no ; then
|
2012-01-30 18:08:01 +01:00
|
|
|
|
TINFO_LDFLAGS="-L${LIB_DIR}"
|
2011-03-04 16:47:46 +01:00
|
|
|
|
SHLIB_LIST="$SHLIB_LIST -l${TINFO_LIB_SUFFIX}"
|
|
|
|
|
fi
|
2012-01-30 18:08:01 +01:00
|
|
|
|
+ TINFO_ARGS="$TINFO_ARGS -L${LIB_DIR} -l${LIB_NAME}${DFT_ARG_SUFFIX}"
|
2011-03-04 16:47:46 +01:00
|
|
|
|
else
|
|
|
|
|
# the next lines are needed for linking libtic over libncurses
|
|
|
|
|
TINFO_NAME=${LIB_NAME}
|
|
|
|
|
--- include/curses.h.in
|
2014-10-20 10:46:47 +02:00
|
|
|
|
+++ include/curses.h.in 2014-03-26 09:22:04.000000000 +0000
|
|
|
|
|
@@ -158,6 +158,9 @@ typedef @cf_cv_typeof_chtype@ chtype;
|
2014-03-26 14:47:39 +01:00
|
|
|
|
typedef @cf_cv_typeof_mmask_t@ mmask_t;
|
2011-03-04 16:47:46 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
+#include <features.h>
|
|
|
|
|
+#include <sys/types.h>
|
|
|
|
|
+
|
|
|
|
|
/*
|
|
|
|
|
* We need FILE, etc. Include this before checking any feature symbols.
|
|
|
|
|
*/
|
|
|
|
|
--- include/termcap.h.in
|
|
|
|
|
+++ include/termcap.h.in 2006-05-18 14:07:15.000000000 +0000
|
|
|
|
|
@@ -46,6 +46,8 @@ extern "C"
|
|
|
|
|
{
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
+#include <features.h>
|
|
|
|
|
+#include <termios.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
|
|
#undef NCURSES_CONST
|
|
|
|
|
--- include/tic.h
|
2012-06-26 12:51:01 +02:00
|
|
|
|
+++ include/tic.h 2012-05-31 12:15:29.000000000 +0000
|
2012-05-31 14:28:59 +02:00
|
|
|
|
@@ -231,12 +231,12 @@ extern NCURSES_EXPORT(const struct alias
|
|
|
|
|
*/
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
/* out-of-band values for representing absent capabilities */
|
|
|
|
|
-#define ABSENT_BOOLEAN ((signed char)-1) /* 255 */
|
|
|
|
|
+#define ABSENT_BOOLEAN (-1) /* 255 */
|
|
|
|
|
#define ABSENT_NUMERIC (-1)
|
|
|
|
|
#define ABSENT_STRING (char *)0
|
|
|
|
|
|
|
|
|
|
/* out-of-band values for representing cancels */
|
|
|
|
|
-#define CANCELLED_BOOLEAN ((signed char)-2) /* 254 */
|
|
|
|
|
+#define CANCELLED_BOOLEAN (-2) /* 254 */
|
|
|
|
|
#define CANCELLED_NUMERIC (-2)
|
|
|
|
|
#define CANCELLED_STRING (char *)(-1)
|
|
|
|
|
|
|
|
|
|
--- man/man_db.renames
|
|
|
|
|
+++ man/man_db.renames 2006-05-18 14:07:15.000000000 +0000
|
|
|
|
|
@@ -167,6 +167,8 @@ tput.1 tput.1
|
|
|
|
|
tset.1 tset.1
|
|
|
|
|
vprintf.3s vprintf.3
|
|
|
|
|
wresize.3x wresize.3ncurses
|
|
|
|
|
+curs_terminfo.\\\*n terminfo.5
|
|
|
|
|
+tack.1 tack.1
|
|
|
|
|
#
|
|
|
|
|
# Other:
|
|
|
|
|
tack.1m tack.1
|
|
|
|
|
--- man/ncurses.3x
|
2012-06-26 12:51:01 +02:00
|
|
|
|
+++ man/ncurses.3x 2012-01-30 16:44:35.000000000 +0000
|
2013-09-30 12:59:28 +02:00
|
|
|
|
@@ -119,6 +119,10 @@ after the shell environment variable \fB
|
2012-01-30 18:08:01 +01:00
|
|
|
|
\fB@TSET@(1)\fR is usually responsible for doing this.
|
2011-03-04 16:47:46 +01:00
|
|
|
|
[See \fBterminfo\fR(\*n) for further details.]
|
|
|
|
|
.PP
|
|
|
|
|
+Beware: the terminal your program is running may or may not have
|
|
|
|
|
+the features you expect. Ncurses makes no attempt to check available
|
|
|
|
|
+features in advance. This is upto the programmer.
|
|
|
|
|
+.PP
|
|
|
|
|
The \fBncurses\fR library permits manipulation of data structures,
|
|
|
|
|
called \fIwindows\fR, which can be thought of as two-dimensional
|
|
|
|
|
arrays of characters representing all or part of a CRT screen.
|
2014-08-25 16:06:26 +02:00
|
|
|
|
--- misc/gen-pkgconfig.in
|
2014-10-20 10:46:47 +02:00
|
|
|
|
+++ misc/gen-pkgconfig.in 2014-08-25 11:52:06.000000000 +0000
|
2014-08-25 16:06:26 +02:00
|
|
|
|
@@ -69,7 +69,7 @@ else
|
|
|
|
|
CFLAGS="-I\${includedir}"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
-if test "$libdir" = "/usr/lib" ; then
|
|
|
|
|
+if test "$libdir" = "/usr/lib" -o "$libdir" = "/usr/lib64" ; then
|
|
|
|
|
LDFLAGS=
|
|
|
|
|
else
|
|
|
|
|
LDFLAGS="-L\${libdir}"
|
|
|
|
|
@@ -80,6 +80,7 @@ do
|
|
|
|
|
name="${name}"
|
|
|
|
|
|
|
|
|
|
desc="ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@"
|
|
|
|
|
+ deps=
|
|
|
|
|
reqs=
|
|
|
|
|
|
|
|
|
|
if test $name = $MAIN_LIBRARY ; then
|
|
|
|
|
@@ -88,9 +89,11 @@ do
|
|
|
|
|
desc="$desc terminal interface library"
|
|
|
|
|
elif expr $name : ".*${CXX_NAME}.*" >/dev/null ; then
|
|
|
|
|
reqs="$PANEL_LIBRARY, $MENU_LIBRARY, $FORM_LIBRARY, $MAIN_LIBRARY"
|
|
|
|
|
+ deps="-l$PANEL_LIBRARY -l$MENU_LIBRARY -l$FORM_LIBRARY -l$MAIN_LIBRARY"
|
|
|
|
|
desc="$desc add-on library"
|
|
|
|
|
else
|
|
|
|
|
reqs="$MAIN_LIBRARY"
|
|
|
|
|
+ deps="-l$MAIN_LIBRARY"
|
|
|
|
|
desc="$desc add-on library"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
@@ -98,6 +101,8 @@ do
|
|
|
|
|
if test $name != $TINFO_NAME ; then
|
|
|
|
|
test -n "$reqs" && reqs="$reqs, "
|
|
|
|
|
reqs="${reqs}${SUB_LIBRARY}"
|
|
|
|
|
+ test -n "$deps" && deps="$deps "
|
|
|
|
|
+ deps="${deps}-l${SUB_LIBRARY}"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
@@ -115,7 +120,7 @@ Description: $desc
|
|
|
|
|
Version: \${version}
|
|
|
|
|
URL: http://invisible-island.net/ncurses
|
|
|
|
|
Requires.private: $reqs
|
|
|
|
|
-Libs: $LDFLAGS -l$name
|
|
|
|
|
+Libs: $LDFLAGS -l$name $deps
|
|
|
|
|
Libs.private: @LIBS@
|
|
|
|
|
Cflags: $CFLAGS
|
|
|
|
|
EOF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
--- misc/ncurses-config.in
|
2012-01-30 18:08:01 +01:00
|
|
|
|
+++ misc/ncurses-config.in 2011-11-17 12:46:49.000000000 +0000
|
2013-02-18 13:51:49 +01:00
|
|
|
|
@@ -98,7 +98,7 @@ while test $# -gt 0; do
|
2011-11-18 13:03:18 +01:00
|
|
|
|
# compile/link
|
|
|
|
|
--cflags)
|
|
|
|
|
INCS=
|
2011-03-04 16:47:46 +01:00
|
|
|
|
- if test "x@WITH_OVERWRITE@" = xno ; then
|
|
|
|
|
+ if test "${THIS%[0-5]*}" != ncurses ; then
|
|
|
|
|
INCS="$INCS -I${includedir}/${THIS}"
|
|
|
|
|
fi
|
2011-11-18 13:03:18 +01:00
|
|
|
|
if test "${includedir}" != /usr/include ; then
|
2011-03-04 16:47:46 +01:00
|
|
|
|
--- misc/terminfo.src
|
2014-10-20 10:46:47 +02:00
|
|
|
|
+++ misc/terminfo.src 2014-03-26 13:44:39.000000000 +0000
|
2011-03-04 16:47:46 +01:00
|
|
|
|
@@ -301,7 +301,9 @@ dumb|80-column dumb tty,
|
|
|
|
|
am,
|
|
|
|
|
cols#80,
|
|
|
|
|
bel=^G, cr=^M, cud1=^J, ind=^J,
|
|
|
|
|
-unknown|unknown terminal type,
|
|
|
|
|
+unknown|switch|patch|unknown terminal type,
|
|
|
|
|
+ gn, use=dumb,
|
|
|
|
|
+net|network|arpanet|dialup|unknown network terminal type,
|
|
|
|
|
gn, use=dumb,
|
|
|
|
|
lpr|printer|line printer,
|
|
|
|
|
OTbs, hc, os,
|
2014-03-26 14:47:39 +01:00
|
|
|
|
@@ -1622,9 +1624,15 @@ linux-c|linux console 1.3.6+ for older n
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# The 2.2.x kernels add a private mode that sets the cursor type; use that to
|
|
|
|
|
# get a block cursor for cvvis.
|
|
|
|
|
# reported by Frank Heckenbach <frank@g-n-u.de>.
|
|
|
|
|
+#
|
|
|
|
|
+# Do not use a block cursor, <werner@suse.de>
|
|
|
|
|
+# This because many programs do have a workaround for the long time
|
|
|
|
|
+# missed cvvis entry. A `\E[?1c' in civis will cause a visible but
|
|
|
|
|
+# zero high cusor ... re-add it for kernels 2.6.11+
|
|
|
|
|
+#
|
2011-11-18 13:03:18 +01:00
|
|
|
|
linux2.2|linux 2.2.x console,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
civis=\E[?25l\E[?1c, cnorm=\E[?25h\E[?0c,
|
|
|
|
|
- cvvis=\E[?25h\E[?8c, use=linux-c-nc,
|
|
|
|
|
+ cvvis=\E[?25h\E[?0c, use=linux-c-nc,
|
|
|
|
|
|
2011-11-18 13:03:18 +01:00
|
|
|
|
# Linux 2.6.x has a fix for SI/SO to work with UTF-8 encoding added here:
|
|
|
|
|
# http://lkml.indiana.edu/hypermail/linux/kernel/0602.2/0868.html
|
2014-03-26 14:47:39 +01:00
|
|
|
|
@@ -3007,6 +3015,7 @@ vt132|DEC vt132,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# at the top of the keyboard. The "DO" key is used as F10 to avoid conflict
|
|
|
|
|
# with the key marked (ESC) on the vt220. See vt220d for an alternate mapping.
|
|
|
|
|
# PF1--PF4 are used as F1--F4.
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
#
|
2012-05-31 14:28:59 +02:00
|
|
|
|
# added msgr -TD
|
2011-03-04 16:47:46 +01:00
|
|
|
|
vt220-old|vt200-old|DEC VT220 in vt100 emulation mode,
|
2014-03-26 14:47:39 +01:00
|
|
|
|
@@ -3017,7 +3026,7 @@ vt220-old|vt200-old|DEC VT220 in vt100 e
|
2011-03-04 16:47:46 +01:00
|
|
|
|
bel=^G, blink=\E[5m$<2>, bold=\E[1m$<2>, civis=\E[?25l,
|
|
|
|
|
clear=\E[H\E[2J$<50>, cnorm=\E[?25h, cr=^M,
|
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub1=^H, cud1=\E[B, cuf1=\E[C,
|
|
|
|
|
- cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, dch1=\E[P,
|
|
|
|
|
+ cup=\E[%i%p1%d;%p2%dH$<10>, cuu1=\E[A, cvvis=\E[?25h, dch1=\E[P,
|
|
|
|
|
dl1=\E[M, ed=\E[J$<50>, el=\E[K$<3>, home=\E[H, ht=^I,
|
|
|
|
|
if=/usr/share/tabset/vt100, il1=\E[L, ind=\ED$<20/>,
|
|
|
|
|
is2=\E[1;24r\E[24;1H, kbs=^H, kcub1=\E[D, kcud1=\E[B,
|
2014-03-26 14:47:39 +01:00
|
|
|
|
@@ -3174,6 +3183,7 @@ vt320nam|v320n|DEC VT320 in vt100 emul.
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# to SMASH the 1k-barrier...
|
|
|
|
|
# From: Adam Thompson <athompso@pangea.ca> Sept 10 1995
|
|
|
|
|
# (vt320: uncommented <fsl> --esr)
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
vt320|vt300|dec vt320 7 bit terminal,
|
2012-05-31 14:28:59 +02:00
|
|
|
|
am, hs, mir, msgr, xenl,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cols#80, lines#24, wsl#80,
|
2014-03-26 14:47:39 +01:00
|
|
|
|
@@ -3183,7 +3193,7 @@ vt320|vt300|dec vt320 7 bit terminal,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
- dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
+ cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
2012-05-31 14:28:59 +02:00
|
|
|
|
ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H, ht=^I,
|
|
|
|
|
hts=\EH, ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\ED,
|
|
|
|
|
is2=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h\E[1;24r\E[24;1H,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -3606,13 +3616,14 @@ putty-sco|putty with SCO function keys,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# retrieving the window title, and for setting the window size (i.e., using
|
|
|
|
|
# "resize -s"), though it does not pass SIGWINCH to the application if the
|
|
|
|
|
# user resizes the window with the mouse.
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
teraterm2.3|Tera Term Pro,
|
|
|
|
|
km, xon@,
|
|
|
|
|
ncv#43, vt@,
|
|
|
|
|
acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260i\316j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330}\234~\376,
|
|
|
|
|
blink=\E[5m, bold=\E[1m, civis=\E[?25l, clear=\E[H\E[J,
|
|
|
|
|
cnorm=\E[?25h, cuf1=\E[C, cup=\E[%i%p1%d;%p2%dH,
|
|
|
|
|
- cuu1=\E[A, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
|
|
|
|
|
+ cuu1=\E[A, cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
|
|
|
|
|
dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K,
|
|
|
|
|
flash=\E[?5h\E[?5l$<200/>, hpa=\E[%i%p1%dG,
|
|
|
|
|
il=\E[%p1%dL, il1=\E[L, kdch1=\E[3~, kf1=\E[11~,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -3815,6 +3826,7 @@ xterm-old|antique xterm version,
|
2012-07-31 12:00:00 +02:00
|
|
|
|
use=xterm-r6,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# This is the base xterm entry for the xterm supplied with XFree86 3.2 & up.
|
|
|
|
|
# The name has been changed and some aliases have been removed.
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
xterm-xf86-v32|xterm terminal emulator (XFree86 3.2 Window System),
|
2012-05-31 14:28:59 +02:00
|
|
|
|
OTbs, am, bce, km, mir, msgr, xenl, XT,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cols#80, it#8, lines#24, ncv@,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -3824,7 +3836,7 @@ xterm-xf86-v32|xterm terminal emulator (
|
2011-03-04 16:47:46 +01:00
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
- dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
+ cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
|
|
|
|
|
flash=\E[?5h$<100/>\E[?5l, home=\E[H, hpa=\E[%i%p1%dG,
|
|
|
|
|
ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4292,8 +4304,26 @@ xterm-noapp|xterm with cursor keys in no
|
2011-03-04 16:47:46 +01:00
|
|
|
|
xterm-24|vs100|xterms|xterm terminal emulator (X Window System),
|
2012-07-31 12:00:00 +02:00
|
|
|
|
lines#24, use=xterm-old,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
+# For SuSE Linux: Werner Fink <werner@suse.de>
|
|
|
|
|
+# Note that the modern xterm does not use escape sequences
|
|
|
|
|
+# for the numbers on the numpad keys in case of switched
|
|
|
|
|
+# into application mode and with numlock enabled.
|
|
|
|
|
+# To test this, use `tput smkx' and `Ctrl-V + key stroke'
|
2012-07-31 12:00:00 +02:00
|
|
|
|
+xterm-suse|xterm terminal emulator (X.Org X11R7.7 Window System with SuSE LINUX),
|
2011-03-04 16:47:46 +01:00
|
|
|
|
+ kbs=\177, kdch1=\E[3~,
|
|
|
|
|
+ kDIV=\EOo, kMUL=\EOj, kMIN=\EOm, kPLS=\EOk,
|
|
|
|
|
+ kfnd=\E[1~, kslt=\E[4~,
|
|
|
|
|
+ use=xterm-new,
|
|
|
|
|
+
|
|
|
|
|
# This is xterm for ncurses.
|
|
|
|
|
xterm|xterm terminal emulator (X Window System),
|
|
|
|
|
+ use=xterm-suse,
|
|
|
|
|
+
|
|
|
|
|
+# xterm-debian is identical to xterm-new with the addition of a small
|
|
|
|
|
+# VT220-ism regarding the backspace and delete keys; this is mandated by
|
|
|
|
|
+# the keyboard configuration section of the Debian Policy Manual.
|
|
|
|
|
+xterm-debian|Debian xterm (backspace and delete changed),
|
|
|
|
|
+ kbs=\177, kdch1=\E[3~,
|
|
|
|
|
use=xterm-new,
|
|
|
|
|
|
|
|
|
|
# This entry assumes that xterm's handling of VT100 SI/SO is disabled by
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4628,7 +4658,7 @@ xterms-sun|small (80x24) xterm with sunF
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
2011-11-18 13:03:18 +01:00
|
|
|
|
#### GNOME (VTE)
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# this describes the alpha-version of Gnome terminal shipped with Redhat 6.0
|
|
|
|
|
-gnome-rh62|Gnome terminal,
|
|
|
|
|
+gnome-rh62|Gnome terminal on Red Hat,
|
|
|
|
|
bce,
|
|
|
|
|
kdch1=\177, kf1=\EOP, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
|
|
|
|
|
use=xterm-color,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4792,10 +4822,14 @@ mgt|Multi GNOME Terminal,
|
2011-11-18 13:03:18 +01:00
|
|
|
|
#### KDE
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# This is kvt 0-18.7, shipped with Redhat 6.0 (though whether it supports bce
|
|
|
|
|
# or not is debatable).
|
|
|
|
|
-kvt|KDE terminal,
|
|
|
|
|
+kvt-rh|KDE terminal,
|
|
|
|
|
bce, km@,
|
|
|
|
|
kdch1=\177, kend=\E[F, khome=\E[H, use=xterm-color,
|
|
|
|
|
|
|
|
|
|
+# This is kvt for SuSE because we do not support BrokenByDesign[tm].
|
|
|
|
|
+kvt|KDE terminal,
|
|
|
|
|
+ kbs=\177, kdch1=\E[3~, use=kvt-rh,
|
|
|
|
|
+
|
|
|
|
|
# Konsole 1.0.1
|
|
|
|
|
# (formerly known as kvt)
|
|
|
|
|
#
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4926,14 +4960,14 @@ mlterm3|multi lingual terminal emulator,
|
2014-03-26 14:47:39 +01:00
|
|
|
|
mlterm2|multi lingual terminal emulator,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
am, eslok, km, mc5i, mir, msgr, npc, xenl, XT,
|
|
|
|
|
colors#8, cols#80, it#8, lines#24, pairs#64,
|
|
|
|
|
- acsc=00``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
|
|
|
|
+ acsc=++\,\,--..00II``aaffgghhjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
|
|
|
|
bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
|
|
|
|
|
clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
|
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
- dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
- ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=,
|
|
|
|
|
+ cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
|
|
|
|
|
+ dl1=\E[M, ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=,
|
|
|
|
|
home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
|
|
|
|
|
ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J, indn=\E[%p1%dS,
|
|
|
|
|
is2=\E7\E[r\E[m\E[?7h\E[?1;3;4;6l\E[4l\E8\E>,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4988,6 +5022,7 @@ mlterm-256color|mlterm 3.0 with xterm 25
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# rxvt is normally configured to look for "xterm" or "xterm-color" as $TERM.
|
|
|
|
|
# Since rxvt is not really compatible with xterm, it should be configured as
|
|
|
|
|
# "rxvt" or "rxvt-color".
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
#
|
|
|
|
|
# removed dch/dch1 because they are inconsistent with bce/ech -TD
|
|
|
|
|
# remove km as per tack test -TD
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -4999,13 +5034,14 @@ rxvt-basic|rxvt terminal base (X Window
|
2011-03-04 16:47:46 +01:00
|
|
|
|
clear=\E[H\E[2J, cnorm=\E[?25h, cr=^M,
|
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
- cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
+ cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A, cvvis=\E[?25h,
|
|
|
|
|
dl=\E[%p1%dM, dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K,
|
|
|
|
|
enacs=\E(B\E)0, flash=\E[?5h\E[?5l, home=\E[H, ht=^I,
|
|
|
|
|
hts=\EH, ich=\E[%p1%d@, ich1=\E[@, il=\E[%p1%dL, il1=\E[L,
|
|
|
|
|
ind=^J, is1=\E[?47l\E=\E[?1l,
|
|
|
|
|
- is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=^H,
|
|
|
|
|
- kcbt=\E[Z, kmous=\E[M, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
|
|
|
|
|
+ is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kbs=\177, kcbt=\E[Z,
|
|
|
|
|
+ kmous=\E[M, kf1=\E[11~, kf2=\E[12~, kf3=\E[13~, kf4=\E[14~,
|
|
|
|
|
+ rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
|
|
|
|
|
rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=\E>, rmso=\E[27m,
|
|
|
|
|
rmul=\E[24m,
|
|
|
|
|
rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5014,7 +5050,7 @@ rxvt-basic|rxvt terminal base (X Window
|
2011-03-04 16:47:46 +01:00
|
|
|
|
sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
|
|
|
|
|
sgr0=\E[0m\017, smacs=^N, smcup=\E7\E[?47h, smir=\E[4h,
|
|
|
|
|
smkx=\E=, smso=\E[7m, smul=\E[4m, tbc=\E[3g, use=vt100+enq,
|
|
|
|
|
- use=rxvt+pcfkeys, use=vt220+keypad,
|
|
|
|
|
+ use=vt220+keypad, use=rxvt+pcfkeys,
|
|
|
|
|
# Key Codes from rxvt reference:
|
|
|
|
|
#
|
|
|
|
|
# Note: Shift + F1-F10 generates F11-F20
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5097,8 +5133,8 @@ rxvt-basic|rxvt terminal base (X Window
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# Removed kDN6, etc (control+shift) since rxvt does not implement this -TD
|
|
|
|
|
rxvt+pcfkeys|fragment for PC-style fkeys,
|
|
|
|
|
kDC=\E[3$, kEND=\E[8$, kHOM=\E[7$, kIC=\E[2$, kLFT=\E[d,
|
|
|
|
|
- kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, kcub1=\E[D, kcud1=\E[B,
|
|
|
|
|
- kcuf1=\E[C, kcuu1=\E[A, kdch1=\E[3~, kel=\E[8\^,
|
|
|
|
|
+ kNXT=\E[6$, kPRV=\E[5$, kRIT=\E[c, kcub1=\EOD, kcud1=\EOB,
|
|
|
|
|
+ kcuf1=\EOC, kcuu1=\EOA, kdch1=\E[3~, kel=\E[8\^,
|
|
|
|
|
kend=\E[8~, kf1=\E[11~, kf10=\E[21~, kf11=\E[23~,
|
|
|
|
|
kf12=\E[24~, kf13=\E[25~, kf14=\E[26~, kf15=\E[28~,
|
|
|
|
|
kf16=\E[29~, kf17=\E[31~, kf18=\E[32~, kf19=\E[33~,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5155,6 +5191,39 @@ rxvt-cygwin-native|rxvt terminal emulato
|
2011-03-04 16:47:46 +01:00
|
|
|
|
acsc=+\257\,\256-\^0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_t\303u\264v\301w\302x\263y\363z\362{\343|\330~\376,
|
|
|
|
|
use=rxvt-cygwin,
|
|
|
|
|
|
|
|
|
|
+# From: Thomas Dickey <dickey@clark.net> 04 Oct 1997
|
|
|
|
|
+# Updated: <20>zg<7A>r Kesim <kesim@math.fu-berlin.de> 02 Nov 1997
|
|
|
|
|
+# Updated: Marc Lehmann <pcg@goof.com>, 17 Feb 2005
|
|
|
|
|
+# Updated: Marc Lehmann <schmorp@schmorp.de>, 04 Nov 2008: change init/reset sequences
|
|
|
|
|
+#
|
|
|
|
|
+rxvt-unicode|rxvt-unicode terminal (X Window System),
|
|
|
|
|
+ bw, ccc, hs, mc5i, npc, btns#5, colors#88, lm#0, ncv#0, pairs#256,
|
|
|
|
|
+ acsc=+C\,D-A.B0E``aaffgghFiGjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
|
|
|
|
+ dsl=\E]2;\007, ech=\E[%p1%dX, enacs=, flash=\E[?5h$<20/>\E[?5l,
|
|
|
|
|
+ fsl=^G, indn=\E[%p1%dS,
|
|
|
|
|
+ initc=\E]4;%p1%d;rgb\:%p2%{65535}%*%{1000}%/%4.4X/%p3%{65535}%*%{1000}%/%4.4X/%p4%{65535}%*%{1000}%/%4.4X\E\\,
|
|
|
|
|
+ is1=\E[!p,
|
|
|
|
|
+ is2=\E[r\E[m\E[2J\E[?7;25h\E[?1;3;4;5;6;9;66;1000;1001;1049l\E[4l,
|
|
|
|
|
+ kIC=\E2$, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, op=\E[39;49m,
|
|
|
|
|
+ rin=\E[%p1%dT, ritm=\E[23m, rmacs=\E(B, rmam=\E[?7l,
|
|
|
|
|
+ rmcup=\E[r\E[?1049l, rmkx=\E[?1l\E>, rs1=\Ec,
|
|
|
|
|
+ rs2=\E[r\E[m\E[?7;25h\E[?1;3;4;5;6;9;66;1000;1001;1049l\E[4l,
|
|
|
|
|
+ s2ds=\E*B, s3ds=\E+B,
|
|
|
|
|
+ setab=\E[48;5;%p1%dm, setaf=\E[38;5;%p1%dm,
|
|
|
|
|
+ setb=%?%p1%{7}%>%t\E[48;5;%p1%dm%e\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
|
|
|
|
|
+ setf=%?%p1%{7}%>%t\E[38;5;%p1%dm%e\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m%;,
|
|
|
|
|
+ sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
|
|
|
|
|
+ sgr0=\E[m\E(B, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
|
|
|
|
|
+ smcup=\E[?1049h, smkx=\E[?1h\E=,
|
|
|
|
|
+ tsl=\E]2;, u6=\E[%i%d;%dR, u7=\E[6n, u8=\E[?1;2c, u9=\E[c,
|
|
|
|
|
+ use=rxvt-basic,
|
|
|
|
|
+
|
|
|
|
|
+rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window System),
|
|
|
|
|
+ colors#256,
|
|
|
|
|
+ pairs#32767,
|
|
|
|
|
+ use=rxvt-unicode,
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
# This variant is supposed to work with rxvt 2.7.7 when compiled with
|
|
|
|
|
# NO_BRIGHTCOLOR defined. rxvt needs more work...
|
|
|
|
|
rxvt-16color|xterm with 16 colors like aixterm,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5201,7 +5270,7 @@ mrxvt-256color|multitabbed rxvt with 256
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# Eterm 0.9.3
|
|
|
|
|
#
|
|
|
|
|
# removed kf0 which conflicts with kf10 -TD
|
|
|
|
|
-# remove cvvis which conflicts with cnorm -TD
|
|
|
|
|
+# remove cvvis which conflicts with cnorm -TD (and re-added by werner)
|
|
|
|
|
# Eterm does not implement control/shift cursor keys such as kDN6, or kPRV/kNXT
|
|
|
|
|
# but does otherwise follow the rxvt+pcfkeys model -TD
|
|
|
|
|
# remove nonworking flash -TD
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5215,13 +5284,13 @@ Eterm|Eterm-color|Eterm with xterm-style
|
2011-03-04 16:47:46 +01:00
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=\E[B, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
- dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
+ cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E)0,
|
|
|
|
|
home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@,
|
|
|
|
|
ich1=\E[@, il=\E[%p1%dL, il1=\E[L, ind=^J,
|
|
|
|
|
is1=\E[?47l\E>\E[?1l,
|
|
|
|
|
is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l, kNXT@,
|
|
|
|
|
- kPRV@, ka1=\E[7~, ka3=\E[5~, kb2=\EOu, kbeg=\EOu, kbs=^H,
|
|
|
|
|
+ kPRV@, ka1=\E[7~, ka3=\E[5~, kb2=\EOu, kbeg=\EOu, kbs=\177,
|
|
|
|
|
kc1=\E[8~, kc3=\E[6~, kent=\EOM, khlp=\E[28~, kmous=\E[M,
|
|
|
|
|
mc4=\E[4i, mc5=\E[5i, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
|
|
|
|
|
rmam=\E[?7l, rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmkx=,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5785,7 +5854,7 @@ pty|4bsd pseudo teletype,
|
2013-05-13 11:30:36 +02:00
|
|
|
|
#### Emacs
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
# The codes supported by the term.el terminal emulation in GNU Emacs 19.30
|
|
|
|
|
-eterm|gnu emacs term.el terminal emulation,
|
|
|
|
|
+eterm-19|gnu emacs term.el terminal emulation,
|
|
|
|
|
am, mir, xenl,
|
|
|
|
|
cols#80, lines#24,
|
|
|
|
|
bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5798,6 +5867,13 @@ eterm|gnu emacs term.el terminal emulati
|
2011-03-04 16:47:46 +01:00
|
|
|
|
rmcup=\E[2J\E[?47l\E8, rmir=\E[4l, rmso=\E[m, rmul=\E[m,
|
|
|
|
|
sgr0=\E[m, smcup=\E7\E[?47h, smir=\E[4h, smso=\E[7m,
|
|
|
|
|
smul=\E[4m,
|
|
|
|
|
+eterm|emacs|gnu emacs term.el terminal emulation,
|
|
|
|
|
+ colors#8, pairs#64,
|
|
|
|
|
+ invis=\E[8m, kcub1=\EOD, kcud1=\EOB,
|
|
|
|
|
+ kcuf1=\EOC, kcuu1=\EOA, kend=\E[4~,
|
|
|
|
|
+ khome=\E[1~, knp=\E[6~, kpp=\E[5~,
|
|
|
|
|
+ setab=\E[%p1%{40}%+%dm, setaf=\E[%p1%{30}%+%dm,
|
|
|
|
|
+ use=eterm-19,
|
|
|
|
|
|
|
|
|
|
# The codes supported by the term.el terminal emulation in GNU Emacs 22.2
|
|
|
|
|
eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -5897,7 +5973,7 @@ screen|VT 100/ANSI X3.64 virtual termina
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
|
|
|
|
|
dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
|
|
|
|
|
flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
|
|
|
|
|
- il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=^H, kcbt=\E[Z,
|
|
|
|
|
+ il=\E[%p1%dL, il1=\E[L, ind=^J, is2=\E)0, kbs=\177, kcbt=\E[Z,
|
|
|
|
|
kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
|
|
|
|
|
kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
|
|
|
|
|
kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -6078,7 +6154,7 @@ screen2|old VT 100/ANSI X3.64 virtual te
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M, ed=\E[J,
|
|
|
|
|
el=\E[K, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=, il=\E[%p1%dL,
|
|
|
|
|
- il1=\E[L, ind=^J, kbs=^H, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
|
|
|
|
|
+ il1=\E[L, ind=^J, kbs=\177, kcub1=\ED, kcud1=\EB, kcuf1=\EC,
|
|
|
|
|
kcuu1=\EA, kf0=\E~, kf1=\ES, kf2=\ET, kf3=\EU, kf4=\EV,
|
|
|
|
|
kf5=\EW, kf6=\EP, kf7=\EQ, kf8=\ER, kf9=\E0I, khome=\EH,
|
|
|
|
|
nel=^M^J, rc=\E8, ri=\EM, rmir=\E[4l, rmso=\E[23m,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -7812,7 +7888,7 @@ hp700-wy|HP700/41 emulating wyse30,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
ri=\Ej, rmir=\Er, rmso=\EG0$<10/>, rmul=\EG0$<10/>,
|
|
|
|
|
sgr0=\EG0$<10/>, smir=\Eq, smso=\EG4$<10/>,
|
|
|
|
|
smul=\EG8$<10/>, tbc=\E0, vpa=\E[%p1%{32}%+%c,
|
|
|
|
|
-hp70092|hp70092a|hp70092A|HP 700/92,
|
|
|
|
|
+hp70092|hp70092a|hp70092A|70092|HP 700/92,
|
|
|
|
|
am, da, db, xhp,
|
|
|
|
|
cols#80, lh#2, lines#24, lm#0, lw#8, nlab#8,
|
|
|
|
|
acsc=0cjgktlrmfn/q\,t5u6v8w7x., bel=^G, blink=\E&dA,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -10946,6 +11022,7 @@ msk22714|mskermit22714|UCB MS-DOS Kermit
|
2011-03-04 16:47:46 +01:00
|
|
|
|
# at support for the VT320 itself.
|
|
|
|
|
# Please send changes with explanations to bug-gnu-emacs@prep.ai.mit.edu.
|
|
|
|
|
# (vt320-k3: I added <rmam>/<smam> based on the init string -- esr)
|
|
|
|
|
+# (cvvis added by werner)
|
|
|
|
|
vt320-k3|MS-Kermit 3.00's vt320 emulation,
|
|
|
|
|
am, eslok, hs, km, mir, msgr, xenl,
|
|
|
|
|
cols#80, it#8, lines#49, pb#9600, vt#3,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -10955,7 +11032,7 @@ vt320-k3|MS-Kermit 3.00's vt320 emulatio
|
2011-03-04 16:47:46 +01:00
|
|
|
|
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
|
|
|
|
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
|
|
|
|
|
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
|
|
|
|
- dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
+ cvvis=\E[?25h, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
|
|
|
|
|
dsl=\E[0$~, ech=\E[%p1%dX, ed=\E[J, el=\E[K,
|
|
|
|
|
flash=\E[?5h\E[?5l\E[?5h\E[?5l\E[?5h\E[?5l,
|
|
|
|
|
fsl=\E[0$}, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -15231,7 +15308,7 @@ ibm3101|i3101|IBM 3101-10,
|
2011-03-04 16:47:46 +01:00
|
|
|
|
cup=\EY%p1%{32}%+%c%p2%{32}%+%c, cuu1=\EA, ed=\EJ,
|
|
|
|
|
el=\EI, home=\EH, hts=\E0, ind=^J, kcub1=\ED, kcud1=\EB,
|
|
|
|
|
kcuf1=\EC, kcuu1=\EA, nel=^M^J, tbc=\EH,
|
|
|
|
|
-ibm3151|IBM 3151 display,
|
|
|
|
|
+ibm3151|i3151|IBM 3151 display,
|
|
|
|
|
is2=\E S, rmacs=\E>B, rmcup=\E>B, rs2=\E S, s0ds=\E>B,
|
|
|
|
|
sgr=\E4%{64}%?%p1%t%{65}%|%;%?%p2%t%{66}%|%;%?%p3%t%{65}%|%;%?%p4%t%{68}%|%;%?%p5%t%{64}%|%;%?%p6%t%{72}%|%;%?%p7%t%{80}%|%;%c%?%p9%t\E>A%e\E>B%;,
|
|
|
|
|
sgr0=\E4@\E>B, smacs=\E>A, smcup=\E>B, use=ibm3162,
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -15461,7 +15538,7 @@ lft|lft-pc850|LFT-PC850|IBM LFT PC850 De
|
2011-03-04 16:47:46 +01:00
|
|
|
|
tbc=\E[3g,
|
2012-06-26 12:51:01 +02:00
|
|
|
|
# "Megapel" refers to the display adapter, which was used with the IBM RT
|
|
|
|
|
# aka IBM 6150.
|
2011-03-04 16:47:46 +01:00
|
|
|
|
-ibm5081|hft|IBM Megapel Color display,
|
|
|
|
|
+ibm5081|ibmmpel|hft|IBM Megapel Color display,
|
|
|
|
|
acsc=jjkkllmmnnqqttuuvvwwxx, blink@, bold@, s0ds=\E(B,
|
|
|
|
|
s1ds=\E(0, sgr0=\E[0m\E(B, use=ibm5154,
|
|
|
|
|
ibm5081-c|ibmmpel-c|IBM 5081 1024x1024 256/4096 Megapel enhanced color display,
|
|
|
|
|
--- ncurses/Makefile.in
|
2011-11-18 13:03:18 +01:00
|
|
|
|
+++ ncurses/Makefile.in 2011-02-28 13:39:31.000000000 +0000
|
2013-09-30 12:59:28 +02:00
|
|
|
|
@@ -211,7 +211,7 @@ $(DESTDIR)$(libdir) :
|
2011-03-04 16:47:46 +01:00
|
|
|
|
../lib : ; mkdir $@
|
|
|
|
|
|
|
|
|
|
./fallback.c : $(tinfo)/MKfallback.sh
|
|
|
|
|
- sh -e $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@
|
|
|
|
|
+ sh -e $(srcdir)/run_cmd.sh $(tinfo)/MKfallback.sh $(TERMINFO) $(TERMINFO_SRC) $(TIC_PATH) $(FALLBACK_LIST) >$@
|
|
|
|
|
|
|
|
|
|
./lib_gen.c : $(base)/MKlib_gen.sh ../include/curses.h
|
|
|
|
|
sh -e $(base)/MKlib_gen.sh "$(CPP) $(CPPFLAGS)" "$(AWK)" generated <../include/curses.h >$@
|
|
|
|
|
--- ncurses/curses.priv.h
|
2014-10-20 10:46:47 +02:00
|
|
|
|
+++ ncurses/curses.priv.h 2014-10-13 12:22:30.203838763 +0000
|
|
|
|
|
@@ -2015,6 +2015,8 @@ extern NCURSES_EXPORT(char *) _nc_tracec
|
2011-03-04 16:47:46 +01:00
|
|
|
|
extern NCURSES_EXPORT(char *) _nc_tracemouse (SCREEN *, MEVENT const *);
|
2014-10-20 10:46:47 +02:00
|
|
|
|
extern NCURSES_EXPORT(char *) _nc_trace_mmask_t (SCREEN *, mmask_t);
|
2011-03-04 16:47:46 +01:00
|
|
|
|
extern NCURSES_EXPORT(int) _nc_access (const char *, int);
|
|
|
|
|
+extern NCURSES_EXPORT(void) _nc_fsid(void);
|
|
|
|
|
+extern NCURSES_EXPORT(void) _nc_fseid(void);
|
|
|
|
|
extern NCURSES_EXPORT(int) _nc_baudrate (int);
|
|
|
|
|
extern NCURSES_EXPORT(int) _nc_freewin (WINDOW *);
|
|
|
|
|
extern NCURSES_EXPORT(int) _nc_getenv_num (const char *);
|
|
|
|
|
--- ncurses/run_cmd.sh
|
|
|
|
|
+++ ncurses/run_cmd.sh 2006-05-18 14:07:15.000000000 +0000
|
|
|
|
|
@@ -0,0 +1,11 @@
|
|
|
|
|
+#!/bin/sh
|
|
|
|
|
+
|
|
|
|
|
+PATH=$PWD/../progs:$PATH
|
|
|
|
|
+if test -n "$LD_LIBRARY_PATH"; then
|
|
|
|
|
+ LD_LIBRARY_PATH="$PWD/../lib:$LD_LIBRARY_PATH"
|
|
|
|
|
+else
|
|
|
|
|
+ LD_LIBRARY_PATH="$PWD/../lib"
|
|
|
|
|
+fi
|
|
|
|
|
+export PATH LD_LIBRARY_PATH
|
|
|
|
|
+
|
|
|
|
|
+exec ${1+"$@"}
|
|
|
|
|
--- ncurses/tinfo/MKfallback.sh
|
|
|
|
|
+++ ncurses/tinfo/MKfallback.sh 2006-05-18 14:07:15.000000000 +0000
|
|
|
|
|
@@ -68,6 +68,12 @@ else
|
|
|
|
|
tmp_info=
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
+if test -n "$TERMINFO" -a -d "$TERMINFO" ; then
|
|
|
|
|
+ infocmp="infocmp -v1 -A $TERMINFO"
|
|
|
|
|
+else
|
|
|
|
|
+ infocmp="infocmp -v1"
|
|
|
|
|
+fi
|
|
|
|
|
+
|
|
|
|
|
cat <<EOF
|
|
|
|
|
/*
|
|
|
|
|
* DO NOT EDIT THIS FILE BY HAND! It is generated by MKfallback.sh.
|
|
|
|
|
@@ -87,7 +93,7 @@ EOF
|
|
|
|
|
for x in $*
|
|
|
|
|
do
|
|
|
|
|
echo "/* $x */"
|
|
|
|
|
- infocmp -E $x
|
|
|
|
|
+ $infocmp -E $x
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
|
@@ -98,7 +104,7 @@ EOF
|
|
|
|
|
for x in $*
|
|
|
|
|
do
|
|
|
|
|
echo "$comma /* $x */"
|
|
|
|
|
- infocmp -e $x
|
|
|
|
|
+ $infocmp -e $x
|
|
|
|
|
comma=","
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
--- ncurses/tinfo/access.c
|
|
|
|
|
+++ ncurses/tinfo/access.c 2010-10-11 13:57:42.000000000 +0000
|
2011-11-18 13:03:18 +01:00
|
|
|
|
@@ -35,6 +35,9 @@
|
|
|
|
|
#include <ctype.h>
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
#include <tic.h>
|
|
|
|
|
+#ifdef linux
|
|
|
|
|
+# include <sys/fsuid.h>
|
|
|
|
|
+#endif
|
|
|
|
|
|
2012-09-17 14:57:29 +02:00
|
|
|
|
MODULE_ID("$Id: access.c,v 1.23 2012/09/01 19:21:29 tom Exp $")
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
2011-11-18 13:03:18 +01:00
|
|
|
|
@@ -112,6 +115,30 @@ _nc_basename(char *path)
|
2011-03-04 16:47:46 +01:00
|
|
|
|
return path + _nc_pathlast(path);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
+NCURSES_EXPORT(void)
|
|
|
|
|
+_nc_fsid()
|
|
|
|
|
+{
|
|
|
|
|
+#ifdef linux
|
|
|
|
|
+ int _old_errno = errno;
|
|
|
|
|
+ setfsuid(getuid());
|
|
|
|
|
+ setfsgid(getgid());
|
|
|
|
|
+ errno = _old_errno;
|
|
|
|
|
+#endif
|
|
|
|
|
+ return;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+NCURSES_EXPORT(void)
|
|
|
|
|
+_nc_fseid()
|
|
|
|
|
+{
|
|
|
|
|
+#ifdef linux
|
|
|
|
|
+ int _old_errno = errno;
|
|
|
|
|
+ setfsuid(geteuid());
|
|
|
|
|
+ setfsgid(getegid());
|
|
|
|
|
+ errno = _old_errno;
|
|
|
|
|
+#endif
|
|
|
|
|
+ return;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
NCURSES_EXPORT(int)
|
|
|
|
|
_nc_access(const char *path, int mode)
|
|
|
|
|
{
|
|
|
|
|
--- ncurses/tinfo/lib_setup.c
|
2011-11-18 13:03:18 +01:00
|
|
|
|
+++ ncurses/tinfo/lib_setup.c 2011-02-28 13:40:42.000000000 +0000
|
2013-02-18 13:51:49 +01:00
|
|
|
|
@@ -583,6 +583,9 @@ _nc_locale_breaks_acs(TERMINAL * termp)
|
2011-03-04 16:47:46 +01:00
|
|
|
|
} else if ((value = tigetnum("U8")) >= 0) {
|
|
|
|
|
result = value; /* use extension feature */
|
|
|
|
|
} else if ((env = getenv("TERM")) != 0) {
|
|
|
|
|
+ char *yast = getenv("YAST_DOES_ACS");
|
|
|
|
|
+ if (yast != 0)
|
|
|
|
|
+ return 0; /* YaST uses always correct font mappings */
|
|
|
|
|
if (strstr(env, "linux")) {
|
|
|
|
|
result = 1; /* always broken */
|
|
|
|
|
} else if (strstr(env, "screen") != 0
|
|
|
|
|
--- ncurses/tinfo/read_entry.c
|
2011-11-18 13:03:18 +01:00
|
|
|
|
+++ ncurses/tinfo/read_entry.c 2011-02-28 13:41:44.000000000 +0000
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -435,6 +435,7 @@ _nc_read_file_entry(const char *const fi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
int limit;
|
|
|
|
|
char buffer[MAX_ENTRY_SIZE + 1];
|
|
|
|
|
|
|
|
|
|
+ _nc_fsid();
|
|
|
|
|
if (_nc_access(filename, R_OK) < 0
|
|
|
|
|
|| (fp = fopen(filename, "rb")) == 0) {
|
2011-11-18 13:03:18 +01:00
|
|
|
|
TR(TRACE_DATABASE, ("cannot open terminfo %s (errno=%d)", filename, errno));
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -452,6 +453,7 @@ _nc_read_file_entry(const char *const fi
|
2011-03-04 16:47:46 +01:00
|
|
|
|
}
|
|
|
|
|
fclose(fp);
|
|
|
|
|
}
|
|
|
|
|
+ _nc_fseid();
|
|
|
|
|
|
|
|
|
|
return (code);
|
|
|
|
|
}
|
|
|
|
|
--- ncurses/tinfo/read_termcap.c
|
2012-01-30 18:08:01 +01:00
|
|
|
|
+++ ncurses/tinfo/read_termcap.c 2011-11-17 12:50:08.000000000 +0000
|
2011-11-18 13:03:18 +01:00
|
|
|
|
@@ -322,14 +322,18 @@ _nc_getent(
|
2011-03-04 16:47:46 +01:00
|
|
|
|
*/
|
|
|
|
|
if (fd >= 0) {
|
|
|
|
|
(void) lseek(fd, (off_t) 0, SEEK_SET);
|
|
|
|
|
- } else if ((_nc_access(db_array[current], R_OK) < 0)
|
|
|
|
|
- || (fd = open(db_array[current], O_RDONLY, 0)) < 0) {
|
|
|
|
|
- /* No error on unfound file. */
|
|
|
|
|
- if (errno == ENOENT)
|
|
|
|
|
- continue;
|
|
|
|
|
- free(record);
|
|
|
|
|
- return (TC_SYS_ERR);
|
|
|
|
|
} else {
|
|
|
|
|
+ _nc_fsid();
|
|
|
|
|
+ if ((_nc_access(db_array[current], R_OK) < 0) ||
|
|
|
|
|
+ (fd = open(db_array[current], O_RDONLY, 0)) < 0) {
|
|
|
|
|
+ _nc_fseid();
|
|
|
|
|
+ /* No error on unfound file. */
|
|
|
|
|
+ if (errno == ENOENT)
|
|
|
|
|
+ continue;
|
|
|
|
|
+ free(record);
|
|
|
|
|
+ return (TC_SYS_ERR);
|
|
|
|
|
+ }
|
|
|
|
|
+ _nc_fseid();
|
|
|
|
|
myfd = TRUE;
|
|
|
|
|
}
|
|
|
|
|
lineno = 0;
|
2013-09-30 12:59:28 +02:00
|
|
|
|
@@ -1117,8 +1121,10 @@ _nc_read_termcap_entry(const char *const
|
2011-03-04 16:47:46 +01:00
|
|
|
|
for (i = 0; i < filecount; i++) {
|
|
|
|
|
|
2011-11-18 13:03:18 +01:00
|
|
|
|
TR(TRACE_DATABASE, ("Looking for %s in %s", tn, termpaths[i]));
|
2011-03-04 16:47:46 +01:00
|
|
|
|
+ _nc_fsid();
|
|
|
|
|
if (_nc_access(termpaths[i], R_OK) == 0
|
|
|
|
|
&& (fp = fopen(termpaths[i], "r")) != (FILE *) 0) {
|
|
|
|
|
+ _nc_fseid();
|
|
|
|
|
_nc_set_source(termpaths[i]);
|
|
|
|
|
|
|
|
|
|
/*
|
2013-09-30 12:59:28 +02:00
|
|
|
|
@@ -1130,6 +1136,7 @@ _nc_read_termcap_entry(const char *const
|
2011-03-04 16:47:46 +01:00
|
|
|
|
|
|
|
|
|
(void) fclose(fp);
|
|
|
|
|
}
|
|
|
|
|
+ _nc_fseid();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (copied != 0)
|
|
|
|
|
--- test/test.priv.h
|
|
|
|
|
+++ test/test.priv.h 2006-05-18 14:07:19.000000000 +0000
|
2014-10-20 10:46:47 +02:00
|
|
|
|
@@ -724,12 +724,12 @@ extern char *strnames[], *strcodes[], *s
|
2011-03-04 16:47:46 +01:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* out-of-band values for representing absent capabilities */
|
|
|
|
|
-#define ABSENT_BOOLEAN ((signed char)-1) /* 255 */
|
|
|
|
|
+#define ABSENT_BOOLEAN (char)-1) /* 255 */
|
|
|
|
|
#define ABSENT_NUMERIC (-1)
|
|
|
|
|
#define ABSENT_STRING (char *)0
|
|
|
|
|
|
|
|
|
|
/* out-of-band values for representing cancels */
|
|
|
|
|
-#define CANCELLED_BOOLEAN ((signed char)-2) /* 254 */
|
|
|
|
|
+#define CANCELLED_BOOLEAN (-2) /* 254 */
|
|
|
|
|
#define CANCELLED_NUMERIC (-2)
|
|
|
|
|
#define CANCELLED_STRING (char *)(-1)
|
|
|
|
|
|