# Contents

* Access dates in DOS
* A <-[0;34mblue<-[0m reminder.
* Wide character support
* Build notes

# Access dates in DOS

Remind uses the file access date for one-time reminders with the
ONCE keyword.  The file access date is not reliably available on
DOS.  To make matters worse, DJGPP utime() fails unconditionally
when using doslfn on FreeDOS.  This is documented in the thread
below [1].

Workaround:
* Ignore ONCE directives: remind -o

[1]
https://sourceforge.net/p/freedos/mailman/message/8335155/

# A <-[0;34mblue<-[0m reminder.

C:\REMIND> remind defs.rem
...
A <-[0;34mblue<-[0m reminder.

This happens when using ANSI color codes on the FreeDOS console.

Workarounds:
* Add line to C:\FDCONFIG.SYS:
  DEVICEHIGH=C:\FDOS\BIN\NANSI.SYS
* Remove the color examples from defs.rem

# Wide character support

I disabled wide character support because it is not fully supported
under DJGPP.  The main thing missing is wcwidth().  For future
reference, below are a few basic implementations:

https://github.com/termux/wcwidth

https://git.savannah.gnu.org/cgit/gnulib.git/plain/lib/wcwidth.c

# Build notes

autoconf
PATH=$PATH:$HOME/local/cross-djgpp/bin
./configure --build=x86_64-slackware-linux --host=i586-pc-msdosdjgpp
sed -i src/config.h                                            \
    -e 's,#define HAVE_MBSTOWCS 1,/* #undef HAVE_MBSTOWCS */,' \
    -e 's,#define HAVE_WCTYPE_H 1,/* #undef HAVE_WCTYPE_H */,'
make
