Once the full mdport.c is added to srogue, erasechar() will be replaced with md_erasechar().
This is a first attempt which may not be completely portable.