Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTRL characters ???

Status
Not open for further replies.

AnnaHere

IS-IT--Management
May 16, 2000
17
0
0
AU
Hi Guys,<br>How do I execute &lt;Ctrl&gt; characters in C-program<br>e.g CTRL-E, or CTRL-D etc.....<br>What symbols would I send to exec or system command<br>for say CTRL-E<br>thanks<br>Anna<br><br>
 
Dear Anna,<br><br>Are you trying to simulate keyboard input? If so that might be OS dependent.<br><br>This is just a guess, for 'CTRL-E' you might try:<br><br>char ctrle[2] = {0x05, '\0'};&nbsp;&nbsp;&nbsp;&nbsp;/* ASCII ^E == 0x05 */<br>exec( &quot;myapp.exe&quot;, &quot;&lt;&quot;, ctrle);<br><br>Good luck<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top