Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the Microsoft Windows Command Prompt (Win7), what does the command Ctrl+N do?

I get the following output:

'' ␋_ ┼¯├ _␊␌¯±┼␋≥␊␍ ▒_ ▒┼ ␋┼├␊_┼▒┌ ¯_ ␊│├␊_┼▒┌ ␌¯└└▒┼␍,
¯▬␊_▒␉┌␊ ▬_¯±_▒└ ¯_ ␉▒├␌␤ °␋┌␊.

I recognize that the preceding line is similar in length to the following message when you type an invalid command:

'a' is not recognized as an internal or external command,
operable program or batch file.

I'm curious why it does this.

share|improve this question scroll down for Command line shortcuts – Logman Jul 13 '14 at 18:54
up vote 5 down vote accepted

The ASCII standard has two code points, SHIFT OUT and SHIFT IN that switch between two different modes.

Historically, these were black and red typewriter ribbon. The instance you see is a VT100 compatible terminal emulator, which uses these to switch between regular text and line drawing characters. This is a simple data compression standard, in which bit 7 of each character is set from the current shift state rather than transferred, which gives a slight speed boost over a serial link.

share|improve this answer
I see now! Ctrl+N is shift out, and Ctrl+O is shift in, so ^Ntest^Otest shows this: ├␊_├test – pbarney Jul 14 '14 at 14:40

It is a "not recognized as an internal or.... " message, but it seems that it isn't displaying correctly. Be sure that command prompt fonts are set to raster.

If I paste the output here, I get the same scrambled characters you do, presumably due to character encoding. Here's the cmd output as a screenshot:

enter image description here

It seems as if the symbol is a UTF-8 symbol, since N++ won't render it correctly in ANSI, but will in UTF-8

U+266B  ♫   e2 99 ab    BEAMED EIGHTH NOTES

You will notice that pressing Ctrl and other letters will produce other symbols, such as the spades symbol for Ctrl+E

share|improve this answer
It occurs for me with raster fonts as well, but the thing I'm most curious about is WHY the output is in a different character coding. – pbarney Jul 13 '14 at 19:14
This does a better job at explaining it than I can:… – TeknoVenus Jul 13 '14 at 19:18
Do you know Ctrl + G causes my PC to beep? – Tom Hart Jul 14 '14 at 13:18
Ctrl + G is the "BELL" symbol, originally meant to send an audible notification beep on old terminals. Still works in the command prompt! – pbarney Aug 3 '14 at 2:40

You must log in to answer this question.

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