What do Ctrl-J, Ctrl-M and Ctrl-I mean in Microsoft Notepad?

6

4

I just noticed, by a fluke, that when hitting Ctrl+J or Ctrl+M in Microsoft Notepad (on Windows 7), it has and same effect as Enter.

Hitting Ctrl+I has and same effect as Tab.

This has no practical consequences for me... But I'm just curious, why do these key combinations produce this output? Why Ctrl+J for Enter?

Ram Rachum

Posted 2013-05-14T09:57:11.247

Reputation: 4 261

2@ta.speot.is While this is a hidden feature, I don't how this is related to the question. – Max Ried – 2018-07-09T09:38:48.757

1More Notepad trivia. – ta.speot.is – 2013-05-14T10:08:45.510

Answers

5

Take a look at this table; the underlying character code for Ctrl+M happens to be (decimal) 13, which is the same as the enter key. The same thing goes for the tab (Ctrl+I), and so on. Ctrl+G is the BEL character, used to alert a remote operator; it still works that way in some terminal programs.

This dates from early telecommunication days when those characters were used for 'out of band' signalling, because they're not printing characters.

The Wikipedia page has an interesting write up on it all.

Geoff

Posted 2013-05-14T09:57:11.247

Reputation: 2 335

3

The ctrl key was added to early computer keyboards so that users could generate control codes.

One way of generating control codes, which became popular, was to have a ctrl key, and use it like a shift key, to generate control codes from the standard alphabet keys. Since the control codes are the low 32 values of the ASCII map, they map exactly to the 32 values of the alphabet and punctuation symbols, exactly as the upper case alphabet maps to the lower case alphabet.

A few of the control codes (enter, tab, backspace, etc…) are so useful that they also have dedicated keys on the keyboard.

user165568

Posted 2013-05-14T09:57:11.247

Reputation: 421