![]() |
| | #1 |
| Registered User Join Date: Jul 2002
Posts: 90
| writing stuff like ctrl+z on a port i am opening my modem port with fopen and the write at commands to it using fprintf. however. to terminate a certain line of text i need to send a ctrl+z (that means that if i do it manualy in a terminal i enter the commandline and the text and then press ctrl-z). how can i write a control-z on the port? i thougt that is a special escape sequence or i could do anything with the ascii table, but i didn't find anything. thank you for helping stormbringer |
| stormbringer is offline | |
| | #2 |
| Registered User Join Date: Jul 2002
Posts: 90
| where can i get a table what a number a combination is, or is this based on the ascii table? |
| stormbringer is offline | |
| | #3 |
| Registered User Join Date: Jul 2002
Posts: 90
| i don't think i get you right.... i press the control key (or the alt or the shift key) and then another key. so there should be a number that signifies that the control key is pressed down and then the other key i.e. Z ist pressed and then both are released. is SUB the number that means control key pressed? what is the value for ctrl-a or ctrl-c or whatever? how can i determine the value of a certain combination? i'm sorry, i'm really trying to understand.... Last edited by stormbringer; 10-08-2002 at 05:16 PM. |
| stormbringer is offline | |
| | #4 |
| Registered User Join Date: Jul 2002
Posts: 90
| ok, i started thinking about it and got the folowing: control sequences start from 001 to 026 (ctrl-a to ctrl-z) alt sequences always start wit 000 and then another number which identifyes the second key pressed? (ibm scan codes) is that right? |
| stormbringer is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| serial port to poll on request | infineonintern | C++ Programming | 2 | 06-11-2009 06:52 AM |
| My TCP Port Scanner in C | billy786 | Networking/Device Communication | 5 | 06-28-2008 07:12 PM |
| accessing my com port, writing and reading data | shoobsie | C Programming | 7 | 09-16-2005 03:29 PM |
| need guidance to connect to serial port | gnychis | Linux Programming | 1 | 06-02-2005 10:10 AM |
| Need help or info about serial port communication | Unregistered | Linux Programming | 1 | 01-08-2002 01:48 PM |