Moved inputbox text decisions into main.c.

So we have the decision for completion types and history lookup types in a
central place.