writing stuff like ctrl+z on a port

This is a discussion on writing stuff like ctrl+z on a port within the Linux Programming forums, part of the Platform Specific Boards category; hi everybody i am opening my modem port with fopen and the write at commands to it using fprintf. however. ...

  1. #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

  2. #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?

  3. #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 06:16 PM.

  4. #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?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. serial port to poll on request
    By infineonintern in forum C++ Programming
    Replies: 2
    Last Post: 06-11-2009, 07:52 AM
  2. My TCP Port Scanner in C
    By billy786 in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-28-2008, 08:12 PM
  3. accessing my com port, writing and reading data
    By shoobsie in forum C Programming
    Replies: 7
    Last Post: 09-16-2005, 04:29 PM
  4. need guidance to connect to serial port
    By gnychis in forum Linux Programming
    Replies: 1
    Last Post: 06-02-2005, 11:10 AM
  5. Need help or info about serial port communication
    By Unregistered in forum Linux Programming
    Replies: 1
    Last Post: 01-08-2002, 01:48 PM

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