[cli] Move console to lib/cli/util/console.