C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 10-05-2002, 01:56 PM   #1
Registered User
 
stormbringer's Avatar
 
Join Date: Jul 2002
Posts: 90
writing stuff like ctrl+z on a port

hi everybody

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   Reply With Quote
Old 10-06-2002, 08:16 AM   #2
Registered User
 
stormbringer's Avatar
 
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   Reply With Quote
Old 10-06-2002, 01:09 PM   #3
Registered User
 
stormbringer's Avatar
 
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   Reply With Quote
Old 10-08-2002, 05:29 PM   #4
Registered User
 
stormbringer's Avatar
 
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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22