10

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

sker
  • 17,842
  • 8
  • 37
  • 41

5 Answers5

26

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.

Michael Ratanapintha
  • 39,422
  • 4
  • 33
  • 40
5

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

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

Blorgbeard
  • 101,031
  • 48
  • 228
  • 272
2

For CLI copy/paste:

Copy : Ctrl+insert
Paste : Shift+insert

AEM
  • 1,354
  • 8
  • 20
  • 30
pookleblinky
  • 623
  • 1
  • 11
  • 23
  • Thanks. The 'Shift+Insert' works for pasting. Not sure about the 'Ctrl+Insert' for copying though. – Vicer Aug 24 '10 at 07:10
1

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.

Charles Roper
  • 20,125
  • 20
  • 71
  • 101
0

check out console2--very nice and allows you to paste by using right click or what not.

Update: conemu is even better: http://conemu.github.io/

rogerdpack
  • 62,887
  • 36
  • 269
  • 388