Fix secure line reading in BTerminal