edgar.c: get user input