Replace command formspec with console

WARNING: I have no idea if it's portable or good at all.