Detect paste in terminal