Clean Terminal Output

By Ripple Software — ripple-software.com

Clean Terminal Output strips terminal-cell whitespace out of text you have copied to the clipboard. It is built for the case where you select and copy text from a terminal using the review cursor and end up with trailing spaces on every line, "blank" lines that are actually full of spaces, and leading indentation you did not want.

How to use it

  1. Copy the messy text however you normally do. For terminal text, that is usually the review cursor: NVDA+f9 to mark the start, move to the end, then NVDA+f10 to copy the selection.
  2. Press NVDA+Shift+C. The clipboard is cleaned in place and you will hear "Clipboard cleaned."
  3. Paste anywhere with Ctrl+V. The text is now flush left, with no trailing spaces and no spaced-out blank lines.

What it does to the text

Settings

Open NVDA's Settings dialog (NVDA menu, Preferences, Settings) and choose the Clean Terminal Output category. You can configure:

Changing the shortcut

The default gesture is NVDA+Shift+C. To change it, open NVDA's Input Gestures dialog (NVDA menu, Preferences, Input Gestures), expand the "Clean Terminal Output" category, and rebind the "Cleans whitespace from the text on the clipboard" command to whatever key you prefer.