Command history + getchar + atoi

more stuff