I'm afraid you have to directly access the terminal (i.e. using the readline library) to be able to do that. Qt can't get its hands on the console input until you press enter. I don't think you will find a portable solution to the problem.