20

I'm a bit embarrassed to ask this, but how can I enter the ^ (I can't see it in my keyboard) that is part of the control sequence: CTRL-^?

The ^ character is often called caret, circumflex, or hat.

wyc
  • 611

7 Answers7

29

The ^ character (which looks like an inverted V) is known as caret. It's also known as a hat, control or uparrow.

It's Shift+6 on my UK keyboard, and I think it's the same for US layouts as well, so you could try Ctrl+Shift+6

If you have a different layout you could have a look at this page on Wikipedia which has pictures of many different keyboard layouts.

If you're on Windows you can get a ^ by hold down Alt and typing 094 on your numeric keypad which will work for all layouts, but unfortunately this won't work if you're holding down Ctrl

random
  • 15,201
David Webb
  • 12,294
4

According to Wikipedia:

Control characters are often rendered into a printable form known as caret notation by printing a caret (^) and then the ASCII character that has a value of the control character plus 64. Control characters generated using letter keys are thus displayed with the upper-case form of the letter. For example, ^G represents code 7, which is generated by pressing the G key when the control key is held down.

As "^" is ASCII 94 (decimal), "Ctrl-^" might represent ASCII 30. Hence, holding down Alt and typing 30 on the numeric keypad might do the trick to "type" Ctrl-^?

Arjan
  • 31,511
0

To type caret symbol on my Italian keyboard, I had to go to settings -> region and language -> input sources -> Italian (no dead keys)

The italian keyboard didn't work well, so I had to choose the "no dead keys" variant.

Dave M
  • 13,250
gianni
  • 111
0

That thing is called Circumflex Accent AKA Circum Accent

Unicode: 005E
ASCII: 94
GID: 65

Most of the times it works by pressing Shift+6 or Ctrl+Shift+6

And of course it depends on the keyboard model and the layout that you're using.

But IF you couldn't type it you can use it by adding symbols.

ヽ(ヅ)ノ

0

I think that (in a terminal under linux) you can hit Ctrl+v Ctrl+^ .

Ctrl+v is by default bound to:

quote-insert
      Add the next character typed to the line verbatim.  This is  how
      to insert characters like C-q, for example.

In order to verify my claim I used xxd (xxd - make a hexdump or do the reverse.) which comes with vim. I typed the following keys: xxd Enter, Ctrl+v, Ctrl+^, Ctrl+d, Ctrl+d and the result looked like:

% xxd
^^
0000000: 1e                                      .

Now the explanation is a little complicated:

  • xxdEnter launches the application xxd.

  • Ctrl+v, Ctrl+^ sends a 0x1e. In order to understand this you have to remember that Ctrl+x sends the character code of X (0x58, note: capital X) minus 0x40, that is 0x18. In case of ^ (0x5e) this results in 0x01e

  • Ctrl+d, Ctrl+d terminates the input. (I don't know why I had to type it twice though).

And finally man ascii is really helpful in remembering all those character codes.

Carolus
  • 359
kmkkmk
  • 86
0

Press Ctrl+Shift+6. The ^ usually represents the Ctrl key, [ie ^C for a Keyboard Interrupt], but in this case, I think the ^ represents a literal caret.

Matt
  • 787
0

The so called aschii-caret on a swedish keyboard -

hold CTRL and press the key with the caret-symbol two times