Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby. How can I copy and paste in irb on Windows?

How can I copy and paste in irb (Interactive Ruby Shell) on Windows?

like image 875
sker Avatar asked Sep 28 '08 01:09

sker


4 Answers

To avoid having to open the drop-down menu and clicking, you need to change the command window settings. To do this, right-click the title bar, choose Properties, turn on "QuickEdit Mode" under the Properties tab (and keep "Insert Mode" on), then OK.

Now, to copy: drag to select, right-click to copy.

To paste: right-click with no selection.

like image 159
Michael Ratanapintha Avatar answered Nov 18 '22 23:11

Michael Ratanapintha


To copy: Hit alt-space, choose Edit, choose Mark, drag-select the text, hit enter.

To paste: Hit alt-space, choose Edit, choose Paste.

like image 40
Blorgbeard Avatar answered Nov 18 '22 23:11

Blorgbeard


For CLI copy/paste:

Copy : Ctrl+insert
Paste : Shift+insert

like image 20
pookleblinky Avatar answered Nov 18 '22 23:11

pookleblinky


You might want to consider using Console, a replacement for Windows' terrible command-line chrome. It offers fully redefinable keyboard shortcuts plus tabs, so it's ideal for IRB.

like image 1
Charles Roper Avatar answered Nov 19 '22 00:11

Charles Roper