-cut yhe trailing '\r' from input lines so that commands are recognized -use db_vprintf() for output in interactive mode to get the "|more" effect -do the same setjmp() game as ddb, so we can return to the prompt