Adjustment for joe

This commit is contained in:
Michiel Broek 2007-03-03 15:14:45 +00:00
parent 8a8b917527
commit 1180eff72c
2 changed files with 6 additions and 1 deletions

View File

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

View File

@ -23,7 +23,11 @@ TIME=`head -n19 $HOME/door.sys |tail -n1 |tr -d "[:cntrl:]"`
## Set preferred editor and parameters
EDITOR=@joebin@/bbsjoe
PARAM="$HOME/edit.msg"
if [ "$UTF-8" == "Yes" ]; then
PARAM="-guess_utf8 $HOME/edit.msg"
else
PARAM="$HOME/edit.msg"
fi
# Using joe with emacs keys:
# You can make a bbsjmacsrc file with emacs keys and put it