Select a block of text from a terminal

From Free State Linux Users Group

Jump to: navigation, search

In this tip I'm using gnome-terminal the default terminal for the GNOME Desktop.

When you normally select text from a terminal it will looks like this:


Image:ShellNormalSelect.png


But if you press in the ctrl key while draging your mouse you can select a block of text, like this:


Image:ShellBlockSelect.png


and then you can copy the text using ctrl+alt+c and then you can paste it normally using ctrl+v or ctr+alt+v if you need to paste it to another terminal, like this:

for key in dir(test):
    if '__' not in key:
        value = getattr(test,key)
        print key, value