hconsole: Fix input handling.