support multiline input in console and terminal