add ctrl d and prompt
add ctrl d and prompt