terminfo fixes

. add TERM=minix to builtin terms
	. regenerate compiled-in compile_terms.c
	. fix terminfo db path
	. update termcap command
	. By Antoine Leca
This commit is contained in:
Ben Gras
2011-08-04 01:02:02 +00:00
parent b9d027bfe2
commit 3977443581
6 changed files with 125 additions and 13 deletions

View File

@@ -1,6 +1,7 @@
/* $NetBSD: compiled_terms.c,v 1.1 2010/02/12 12:18:33 roy Exp $ */
/* $NetBSD$ */
/* * * MODIFIED FOR MINIX * * */
/* DO NOT EDIT
* Regenerate by doing `make compiled_terms`
* Regenerate by doing ``make compiled_terms''
*/
struct compiled_term {
@@ -85,6 +86,80 @@ const struct compiled_term compiled_terms[] = {
"\002\000\012\000\122\001\002\000\012\000\000\000",
57
},
{
"minix",
"\002\006\000\155\151\156\151\170\000\000\000\000\000\010\000"
"\002\000\001\000\001\011\000\001\026\000\005\000\004\000\120"
"\000\007\000\010\000\012\000\031\000\016\000\010\000\021\000"
"\100\000\342\003\133\000\003\000\002\000\007\000\063\000\005"
"\000\033\133\065\155\000\064\000\005\000\033\133\061\155\000"
"\021\000\010\000\033\133\110\033\133\060\112\000\007\000\002"
"\000\015\000\063\001\011\000\033\133\045\160\061\045\144\104"
"\000\036\000\002\000\010\000\056\001\011\000\033\133\045\160"
"\061\045\144\102\000\033\000\004\000\033\133\102\000\065\001"
"\011\000\033\133\045\160\061\045\144\103\000\041\000\004\000"
"\033\133\103\000\032\000\021\000\033\133\045\151\045\160\061"
"\045\144\073\045\160\062\045\144\110\000\070\001\011\000\033"
"\133\045\160\061\045\144\101\000\043\000\004\000\033\133\101"
"\000\054\001\011\000\033\133\045\160\061\045\144\120\000\047"
"\000\004\000\033\133\120\000\055\001\011\000\033\133\045\160"
"\061\045\144\115\000\050\000\004\000\033\133\115\000\024\000"
"\005\000\033\133\060\112\000\023\000\004\000\033\133\113\000"
"\034\000\004\000\033\133\110\000\166\001\002\000\011\000\060"
"\001\011\000\033\133\045\160\061\045\144\100\000\165\000\004"
"\000\033\133\100\000\062\001\011\000\033\133\045\160\061\045"
"\144\114\000\166\000\004\000\033\133\114\000\122\001\002\000"
"\012\000\157\000\005\000\033\133\060\155\000\173\000\002\000"
"\010\000\326\000\004\000\033\133\104\000\212\000\004\000\033"
"\133\102\000\351\000\004\000\033\133\103\000\015\001\004\000"
"\033\133\101\000\210\000\002\000\177\000\214\000\004\000\033"
"\133\131\000\221\000\006\000\033\133\062\061\176\000\222\000"
"\006\000\033\133\061\061\176\000\223\000\006\000\033\133\061"
"\062\176\000\224\000\006\000\033\133\061\063\176\000\225\000"
"\006\000\033\133\061\064\176\000\226\000\006\000\033\133\061"
"\065\176\000\227\000\006\000\033\133\061\067\176\000\230\000"
"\006\000\033\133\061\070\176\000\231\000\006\000\033\133\061"
"\071\176\000\232\000\006\000\033\133\062\060\176\000\233\000"
"\006\000\033\133\062\061\176\000\234\000\010\000\033\133\061"
"\061\073\062\176\000\235\000\010\000\033\133\061\062\073\062"
"\176\000\236\000\010\000\033\133\061\063\073\062\176\000\237"
"\000\010\000\033\133\061\064\073\062\176\000\240\000\010\000"
"\033\133\061\065\073\062\176\000\241\000\010\000\033\133\061"
"\067\073\062\176\000\242\000\010\000\033\133\061\070\073\062"
"\176\000\243\000\010\000\033\133\061\071\073\062\176\000\244"
"\000\010\000\033\133\062\060\073\062\176\000\245\000\010\000"
"\033\133\062\061\073\062\176\000\246\000\010\000\033\133\061"
"\061\073\065\176\000\247\000\010\000\033\133\061\062\073\065"
"\176\000\250\000\010\000\033\133\061\063\073\065\176\000\251"
"\000\010\000\033\133\061\064\073\065\176\000\252\000\010\000"
"\033\133\061\065\073\065\176\000\253\000\010\000\033\133\061"
"\067\073\065\176\000\254\000\010\000\033\133\061\070\073\065"
"\176\000\255\000\010\000\033\133\061\071\073\065\176\000\256"
"\000\010\000\033\133\062\060\073\065\176\000\257\000\010\000"
"\033\133\062\061\073\065\176\000\260\000\010\000\033\133\061"
"\061\073\066\176\000\261\000\010\000\033\133\061\062\073\066"
"\176\000\262\000\010\000\033\133\061\063\073\066\176\000\263"
"\000\010\000\033\133\061\064\073\066\176\000\264\000\010\000"
"\033\133\061\065\073\066\176\000\265\000\010\000\033\133\061"
"\067\073\066\176\000\266\000\010\000\033\133\061\070\073\066"
"\176\000\267\000\010\000\033\133\061\071\073\066\176\000\270"
"\000\010\000\033\133\062\060\073\066\176\000\271\000\010\000"
"\033\133\062\061\073\066\176\000\323\000\004\000\033\133\110"
"\000\324\000\004\000\033\133\100\000\335\000\004\000\033\133"
"\125\000\340\000\004\000\033\133\126\000\047\001\003\000\015"
"\012\000\105\000\005\000\033\133\067\155\000\123\001\003\000"
"\033\115\000\140\000\005\000\033\133\060\155\000\143\000\005"
"\000\033\133\060\155\000\125\000\005\000\033\133\060\155\000"
"\112\000\005\000\033\133\067\155\000\116\000\005\000\033\133"
"\064\155\000\132\001\012\000\033\133\064\045\160\061\045\144"
"\155\000\133\001\012\000\033\133\063\045\160\061\045\144\155"
"\000\000\000\077\000\053\020\054\021\055\030\056\031\060\333"
"\140\004\141\261\146\370\147\361\150\260\152\331\153\277\154"
"\332\155\300\156\305\157\176\160\304\161\304\162\304\163\137"
"\164\303\165\264\166\301\167\302\170\263\171\363\172\362\173"
"\343\174\330\175\234\176\376\000\000\000",
1045
},
{
"vt100",
"\002\006\000\166\164\061\060\060\000\000\000\000\000\021\000"

View File

@@ -31,12 +31,13 @@
set -e
: ${TOOL_TIC:=tic}
: ${NETBSDSRCDIR:=/usr/src}
: ${TERMINFO:=${NETBSDSRCDIR}/share/terminfo/terminfo}
: ${MINIXSRCDIR:=/usr/src}
: ${TERMINFO:=${MINIXSRCDIR}/share/terminfo/terminfo}
echo "/* \$NetBSD\$ */"
echo "/* * * MODIFIED FOR MINIX * * */"
echo "/* DO NOT EDIT"
echo " * Regenerate by doing \`\`make compiled_terms''"
echo " */"
echo
${TOOL_TIC} -Sx ${TERMINFO} ansi dumb vt100 vt220 wsvt25 xterm
${TOOL_TIC} -Sx ${TERMINFO} ansi dumb minix vt100 vt220 wsvt25 xterm

View File

@@ -44,7 +44,11 @@ __RCSID("$NetBSD: term.c,v 1.11 2010/02/26 00:09:00 roy Exp $");
#include <term_private.h>
#include <term.h>
#ifndef __minix
#define _PATH_TERMINFO "/usr/share/misc/terminfo"
#else
#define _PATH_TERMINFO "/usr/share/terminfo/terminfo"
#endif
static char database[PATH_MAX];
static char pathbuf[PATH_MAX];