Busticated input handling. DO NOT RUN THIS. It will make your terminal very sad :(