Discussion:
Ctrl+Shift+V vs Ctrl+V.
(too old to reply)
Spiros Bousbouras
2021-02-19 04:35:05 UTC
Permalink
[Crossposting to alt.folklore.computers]

On Fri, 19 Feb 2021 02:38:50 -0000 (UTC)
$ man ascii|grep 007
007 7 07 BEL '\a' (bell) 107 71 47 G
But I still can't find the official documentation for the explanation of
the equivalence of ^G and '\a'. Any hints will be highly appreciated.
G is the 7th letter, ^G represents "control code 7". The '\a' is for
"alert", as '\b' is used for "backspace".
I was under the impression that it's because 7+64 = 71 .Obviously you get
the same result either way but I was under the impression that 64 has
something to do with it.
Alan Bowler
2022-02-20 00:53:09 UTC
Permalink
Post by Spiros Bousbouras
[Crossposting to alt.folklore.computers]
On Fri, 19 Feb 2021 02:38:50 -0000 (UTC)
$ man ascii|grep 007
007 7 07 BEL '\a' (bell) 107 71 47 G
But I still can't find the official documentation for the explanation of
the equivalence of ^G and '\a'. Any hints will be highly appreciated.
G is the 7th letter, ^G represents "control code 7". The '\a' is for
"alert", as '\b' is used for "backspace".
I was under the impression that it's because 7+64 = 71 .Obviously you get
the same result either way but I was under the impression that 64 has
something to do with it.
It does. On combinatorial keyboards like teletypes and others
had CTRL toggled the 0100 (64) bit and SHIFT toggled the 0040 bit.
Spiros Bousbouras
2022-02-22 11:38:20 UTC
Permalink
On Sat, 19 Feb 2022 19:53:09 -0500
Post by Alan Bowler
Post by Spiros Bousbouras
[Crossposting to alt.folklore.computers]
On Fri, 19 Feb 2021 02:38:50 -0000 (UTC)
$ man ascii|grep 007
007 7 07 BEL '\a' (bell) 107 71 47 G
But I still can't find the official documentation for the explanation of
the equivalence of ^G and '\a'. Any hints will be highly appreciated.
G is the 7th letter, ^G represents "control code 7". The '\a' is for
"alert", as '\b' is used for "backspace".
I was under the impression that it's because 7+64 = 71 .Obviously you get
the same result either way but I was under the impression that 64 has
something to do with it.
It does. On combinatorial keyboards like teletypes and others
had CTRL toggled the 0100 (64) bit and SHIFT toggled the 0040 bit.
On the 1 year anniversary of my post I get an answer ! Thank you.
Fred Weigel
2022-02-22 22:03:55 UTC
Permalink
Post by Spiros Bousbouras
On Sat, 19 Feb 2022 19:53:09 -0500
[Crossposting to alt.folklore.computers]
On Fri, 19 Feb 2021 02:38:50 -0000 (UTC)
$ man ascii|grep 007
007 7 07 BEL '\a' (bell) 107 71 47 G
But I still can't find the official documentation for the explanation of
the equivalence of ^G and '\a'. Any hints will be highly appreciated.
G is the 7th letter, ^G represents "control code 7". The '\a' is for
"alert", as '\b' is used for "backspace".
I was under the impression that it's because 7+64 = 71 .Obviously you get
the same result either way but I was under the impression that 64 has
something to do with it.
It does. On combinatorial keyboards like teletypes and others
had CTRL toggled the 0100 (64) bit and SHIFT toggled the 0040 bit.
On the 1 year anniversary of my post I get an answer ! Thank you.^
But... that isn't it. There is no such equivalence. \a is alarm or alert -- t is tab; just easy to memorize. Yes, 7
is control-G, because G is 0x47... in ascii, anyway. Since C does NOT necessarily use ascii, \a may have a different value. To quote from the IBM C manual: "alert character
A character that in the output stream causes a terminal to alert its user by way of a visual or audible
notiĀ®ctionN The alert character is the character designated by a '\a' in the C and C++ languages. It is
unspeciĀ®ed whether this character is the exact sequence transmitted to an output device by the
system to accomplish the alert function."

Loading...