<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx</link><description>Bangs or bells.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1431654</link><pubDate>Mon, 08 Jan 2007 02:25:14 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1431654</guid><dc:creator>Igor</dc:creator><description>&lt;p&gt;Happy New Year to Raymond. Perhaps associating bullet to beep is intentional ;)&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1431654" width="1" height="1"&gt;</description></item><item><title>Beeps from bullets</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1424305</link><pubDate>Sun, 07 Jan 2007 01:05:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1424305</guid><dc:creator>Buck Hodges</dc:creator><description>&lt;p&gt;Way back near the beginning of development of TFS version control, which was called Hatteras back then,&lt;/p&gt;
&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1424305" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1416728</link><pubDate>Fri, 05 Jan 2007 16:58:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1416728</guid><dc:creator>kiwiblue</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; Can't reproduce on XPSP2. I'm copying &lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; it into CMD.EXE console window, and &lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; echo actually copies the bullet character.&lt;/p&gt;
&lt;p&gt;&amp;gt; In the command window properties if the &lt;/p&gt;
&lt;p&gt;&amp;gt; Font is chosen as Lucida it would print a &lt;/p&gt;
&lt;p&gt;&amp;gt; bullet, otherwise if raster fonts is &lt;/p&gt;
&lt;p&gt;&amp;gt; chosen it would sound a bell as Raymond &lt;/p&gt;
&lt;p&gt;&amp;gt; noted.&lt;/p&gt;
&lt;p&gt;As pointed by Johannes R&amp;#246;ssel in 5th reply.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1416728" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1414937</link><pubDate>Fri, 05 Jan 2007 08:57:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1414937</guid><dc:creator>svark</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt;Can't reproduce on XPSP2. I'm copying it into &amp;gt;&amp;gt;CMD.EXE console window, and echo actually &amp;gt;&amp;gt;copies the bullet character.&lt;/p&gt;
&lt;p&gt;In the command window properties if the Font is chosen as Lucida it would print a bullet, otherwise if raster fonts is chosen it would sound a bell as Raymond noted.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1414937" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1414348</link><pubDate>Fri, 05 Jan 2007 07:32:57 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1414348</guid><dc:creator>Norman Diamond</dc:creator><description>
&lt;p&gt;&amp;gt; GetStockFont(OEM_FIXED_FONT)&lt;/p&gt;

&lt;p&gt;I think you need to go into Control Panel and set your system's default language for non-Unicode programs. &amp;nbsp;In fact even if your program IS Unicode I think you have to do that setting. &amp;nbsp;I should read and experiment to see if AppLocale will take care of it. &amp;nbsp;Anyway just getting the default code page changed doesn't get the default font changed.&lt;/p&gt;

&lt;p&gt;&amp;gt; Type echo ^A where you actually type Ctrl+A&lt;/p&gt;

&lt;p&gt;&amp;gt; where I wrote ^A. The result:&lt;/p&gt;

&lt;p&gt;The result is a quotation mark. &amp;nbsp;I think in a command prompt window the command "mode con cp select=" some number will adjust the font together with the code page.&lt;/p&gt;
&lt;div class="post"&gt;[&lt;i&gt;Sigh. "On a Windows XP machine in the default configuration for a US-English system." I assume people are smart enough to figure that out. Are you nitpicking or were you genuinely confused? I can never tell with you. -Raymond&lt;/i&gt;]&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1414348" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1413227</link><pubDate>Fri, 05 Jan 2007 03:29:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1413227</guid><dc:creator>Nick</dc:creator><description>&lt;p&gt;[But it doesn't go into the command history, which is might inconvenient. -Raymond]&lt;/p&gt;
&lt;p&gt;Ah, true enough. I didn't think about that.&lt;/p&gt;
&lt;p&gt;An alternative that does require use of HOME is to type a colon at the start of the line. It gets treated the same as a REM and does stay in the command history.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1413227" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1412709</link><pubDate>Fri, 05 Jan 2007 00:41:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1412709</guid><dc:creator>Nick</dc:creator><description>&lt;P&gt;So 'echo ^D' prints a diamond. D for diamond, it all makes sense now!&lt;/P&gt;
&lt;P&gt;Regarding andy's comment, if I want to save what I've typed at a prompt, I usually don't press HOME at all. &amp;nbsp;What I do (that works with Bash and CMD) is just press CTRL-C. This cancels and gives me a new prompt, but leaves whatever I had on the previous line intact. Very handy.&lt;/P&gt;
&lt;DIV class=post&gt;[&lt;I&gt;But it doesn't go into the command history, which is might inconvenient. -Raymond&lt;/I&gt;]&lt;/DIV&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1412709" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1412228</link><pubDate>Thu, 04 Jan 2007 22:16:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1412228</guid><dc:creator>SM</dc:creator><description>&lt;p&gt;(jim) &amp;gt;&amp;gt;&amp;quot;^J seems to be ignored completely ...^M is interpreted as ENTER.&amp;quot;&lt;/p&gt;
&lt;p&gt;That is interesting. &amp;nbsp;The ^J should be a Linefeed, and ^M should be a Carriage Return. Of course, with windows files, a line ending is noted with the CR LF combination. &amp;nbsp;I guess the enter key in cmd.exe only sends a CR? &amp;nbsp;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1412228" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1411784</link><pubDate>Thu, 04 Jan 2007 21:05:17 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1411784</guid><dc:creator>Ben Cooke</dc:creator><description>&lt;p&gt;Somehow I had completely forgotten that there were glyphs in those control characters in the olden days. You had me scratching my head for a few minutes thinking &amp;quot;why would a BEL be a bullet?!&amp;quot;.&lt;/p&gt;
&lt;p&gt;I'm sure lots of people of a suitable age remember making silly little demos/games involving those smiley face characters, the card symbols and the musical note. Those arrow characters were quite useful for scroll bars, too. I guess it would have been a waste not to use those characters for glyphs too, since those &amp;lt;32 values could be written to video memory just fine.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1411784" width="1" height="1"&gt;</description></item><item><title>re: How a bullet turns into a beep</title><link>http://blogs.msdn.com/b/oldnewthing/archive/2007/01/04/1411080.aspx#1411740</link><pubDate>Thu, 04 Jan 2007 20:38:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1411740</guid><dc:creator>Nick Fitzsimons</dc:creator><description>&lt;p&gt;Mike Dimmick beat me to explaining ☺, but to Carlos: CTRL-@ is equal to character code 0 (zero), which is ASCII NUL. The use of zero in C as a string terminator might have something to do with the behaviour you're seeing... or it might not :-)&lt;/p&gt;
&lt;p&gt;If you look at an ASCII table, you can see that @ is character 64, and the action of the CTRL key is (nominally) to reset the sixth bit, so that CTRL-@ -&amp;gt; 0 == NUL, CTRL-A -&amp;gt; 1 == SOH, CTRL-G -&amp;gt; 7 == BEL &amp;nbsp;and so forth:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.asciitable.com/"&gt;http://www.asciitable.com/&lt;/a&gt;&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1411740" width="1" height="1"&gt;</description></item></channel></rss>