9

Is there any way I can disable the stupid rectangle selection mode thing in the Windows command line? I want to select line by line like normal. Currently it's a giant pain when I need to copy things that span multiple lines because the copied text gets lineendings where there shouldn't be any...

1
  • 2
    Pipe anything that do at the command line to a text file then select in notepad.
    – EBGreen
    Aug 16, 2012 at 13:24

2 Answers 2

6

There is ConEmu - configurable and flexible windows console emulator, I'm the author of it.

ConEmu allows both rectangular (block) and stream (text) selection.

  • Using mouse just start dragging (with LeftBtn pressed) over console in vertical direction to begin block selection and in horizontal direction to begin text/stream selection;
  • With keyboard you may start block selection with Shift+UpArrow/DownArrow and text selection with Shift+LeftArrow/RightArrow. Press WinAltK if you want to set up your own hotkeys for that actions;
  • From System menu or Tab menu -> Edit -> Mark block, Mark text or Copy all;
  • At last, you may use modifiers (choose from Ctrl, Alt or Shift) to start exact type of selection. By default, hold Alt+LeftBtn and use mouse drag to start block selection, hold Shift+LeftBtn and use mouse drag to start text selection.

Copy format

You may choose plain text or HTML (to paste colors/fonts into blogs etc).

Some useful answers

are here in the ConEmu tag. And user comments on StackOverflow.

A brief excerpt from the long list of options

  • Tabs and splits for running any shell you choose
  • Use any font installed in the system, or copied to a folder of the program (ttf, otf, fon, bdf)
  • Run selected tabs as Administrator (Vista+) or as selected user
  • Windows 7 Jump lists and Progress on taskbar
  • Integration with DosBox (useful in 64bit systems to run DOS applications)
  • Smooth resize, maximized and fullscreen window modes
  • Scrollbar initially hidden, may be revealed by mouseover or checkbox in settings
  • Optional settings (e.g. pallette) for selected applications
  • User friendly text and block selection (from keyboard or mouse), copy, paste, text search in console
  • ANSI X3.64 and Xterm 256 color

For more information you may refer to ConEmu documentation or mailing list.

3
  • Answer updated, all possibilities explained.
    – Maximus
    Aug 27, 2014 at 6:51
  • looks good, it's a multi-tab FAR Manager. Have you considered adding Linux-commands support. It's done in CmdEr, but copypasting is so much better in Far/ConEmu. May 11, 2020 at 10:19
  • There is no need to "add" Linux command support. Just use them. There are several options - wsl, cygwin, msys, etc.
    – Maximus
    May 29, 2020 at 23:13
4

With the standard command prompt no. It is possible though with an alternative command prompt such as Console2. It will also allow you to freely set the the window size, have multiple tabs etc.

1
  • 1
    it's possible with the standard command prompt now in Windows 10
    – phuclv
    Oct 13, 2017 at 10:28

Not the answer you're looking for? Browse other questions tagged .