Fix for terminfo database

This commit is contained in:
Michiel Broek 2007-03-03 16:10:20 +00:00
parent 4ec5216952
commit 30bcc67e1f
3 changed files with 11 additions and 8 deletions

View File

@ -69,6 +69,10 @@ v0.91.5 18-Feb-2007
lang: lang:
Language prompts 44, 75 and 76 are obsolete. Language prompts 44, 75 and 76 are obsolete.
script:
Adjusted editor script to use nansi.sys if ansi.sys is not
available in the terminfo database.
examples: examples:
Upgraded the html macro templates to produce UTF-8 web pages. Upgraded the html macro templates to produce UTF-8 web pages.

View File

@ -2824,7 +2824,6 @@ int Ext_Edit()
fprintf(fd,"BBSFSEDKEYS='%d'\n",exitinfo.FSemacs); fprintf(fd,"BBSFSEDKEYS='%d'\n",exitinfo.FSemacs);
fprintf(fd,"LINES='%d'\n",rows); fprintf(fd,"LINES='%d'\n",rows);
fprintf(fd,"COLUMNS='80'\n"); fprintf(fd,"COLUMNS='80'\n");
fprintf(fd,"UTF8='%s'\n",utf8?"Yes":"No");
fclose(fd); fclose(fd);
} }

View File

@ -13,7 +13,11 @@ function alarma
} }
## Set term environmment ## Set term environmment
if [ -f /usr/share/terminfo/a/ansi.sys ]; then
export JOETERM=ansi.sys
else
export JOETERM=nansi.sys export JOETERM=nansi.sys
fi
## Read variables from data.msg ## Read variables from data.msg
. $HOME/data.msg . $HOME/data.msg
@ -23,11 +27,7 @@ TIME=`head -n19 $HOME/door.sys |tail -n1 |tr -d "[:cntrl:]"`
## Set preferred editor and parameters ## Set preferred editor and parameters
EDITOR=@joebin@/bbsjoe EDITOR=@joebin@/bbsjoe
if [ "$UTF8" == "Yes" ]; then
PARAM="-guess_utf8 $HOME/edit.msg"
else
PARAM="$HOME/edit.msg" PARAM="$HOME/edit.msg"
fi
# Using joe with emacs keys: # Using joe with emacs keys:
# You can make a bbsjmacsrc file with emacs keys and put it # You can make a bbsjmacsrc file with emacs keys and put it
@ -91,7 +91,7 @@ alarma $TIME $EDITOR &
## Draw header and call editor ## Draw header and call editor
echo -e " " echo -e " "
echo -e "$LANGAREA: $AREANUM $AREA $UTF8 $TERM $JOETERM" echo -e "$LANGAREA: $AREANUM $AREA"
echo -e "$LANGFROM: $MSGFROM $MSGFROMADDR" echo -e "$LANGFROM: $MSGFROM $MSGFROMADDR"
echo -e "$LANGTO: $MSGTO $MSGTOADDR" echo -e "$LANGTO: $MSGTO $MSGTOADDR"
echo -e "$LANGRE: $MSGSUBJECT" echo -e "$LANGRE: $MSGSUBJECT"