Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I find it quite infuriating how hard is to actually copy text in text only environments: Powershell and cmd. How can I simply select rows of text, not blocks of text? How did they came up up and think that block of text is more of a default option for selecting text?

Ending the rant, is a there a way to have a simple "select text, copy text" in Powershell or cmd?

For example, if I want to select MY TEXT here:

asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd MY
TEXT asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd a

and I block-select the two rows, I get 'asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd MY\nTEXT asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd asd a' (also, note the annoying \r\n) instead of the simple 'MY TEXT'

share|improve this question
    
you say not selecting a block but how about selecting a block by clicking at the far left, pushing the mouse to the far right and dragging down, then you are selecting rows. –  barlop May 5 '12 at 10:17
    
nope, i'm selecting far more than I want if, for example. see edit –  pistacchio May 5 '12 at 10:21
    
Pretty sure this is a duplicate, but the reasoning behind block select, I assume, is because many traditional DOS/CLI apps have ASCII-based TUIs (e.g. Norton Commander) that would be impossible to select text from using non-block selection. However, this is a pretty rare use-case these days, so they should still have at least added the option for normal text selection. –  Lèse majesté May 5 '12 at 12:45
    
mintty does but afaik mintty is only for cygwin –  barlop May 7 '12 at 4:19
add comment

1 Answer

Theres no direct way in window's console window to do this, but you can get exactly the behavior you want from console2, it also has a lot of other features that the default console window SHOULD have but doesn't. Note that this is not a replacement for cmd.exe, but rather, a replacement for the console window in which cmd.exe runs. You can use any console app as the shell (like powershell, etc). Here's the link to it

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.