Make local readline functions all consistent code