VanDyke Software

Scripting Examples

Index

Reveal Non-Printing Characters

Have you ever copied something to the clipboard and thought you knew what was there, only to realize that there may be characters that you cannot "see"?

Or, perhaps you're working with a regular expression and the contents of the string you're working with doesn't seem to match the pattern?

This example script is designed to work in SecureCRT such that non-printing characters that aren't otherwise easily seen/detected can be revealed. A Python example and a VBScript example are provided for download.

Here's an example of the script in action, working on the clipboard text which contains double-quotes, Line Feed (ASCII Dec 10) and Carriage Return (ASCII Dec 13) non-printing characters.


Example Scripts

RevealNonPrintingCharacters.vbs.txt (3.2 KB)
RevealNonPrintingCharacters.py.txt (3.6 KB)

VanDyke Software uses cookies to give you the best online experience. Before continuing to use this site, please confirm that you agree to our use of cookies. Please see our Cookie Usage for details.