Show the line after grabbing, refactor link class
Fix terminal detection.