Interactive mode support for multiline input