prevent drag of text selection in terminal

uncleMonty

macrumors regular
Original poster
Jun 8, 2012
104
0
Sometimes when I use the mouse or trackpad to grab a chunk of text in the terminal (previous to copying and pasting into another application, for example), OS X decides to drag the selection within the terminal (i.e. pastes it in to the terminal window while I'm still moving the mouse or trackpad). This is usually disastrous, especially if I'm currently in an editor or other environment running on the terminal, because it will interpret all the pasted text as commands, sometimes resulting in a lost document. Is there a way to disable this behaviour? Thanks!
 

chown33

Moderator
Staff member
Aug 9, 2009
8,427
4,432
Pale blue comma
Use SHIFT-CLICK to extend a selection, rather than DRAGGING.

I often do selection this way in Terminal, for exactly the reasons stated.
 

Alrescha

macrumors 68020
Jan 1, 2008
2,157
315
If you find yourself accidentally dragging text in Terminal, you can cancel the drag before you let go by hitting Escape.

A.