Thread: writing stuff like ctrl+z on a port

  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 05: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, 06:52 AM
  2. My TCP Port Scanner in C
    By billy786 in forum Networking/Device Communication
    Replies: 5
    Last Post: 06-28-2008, 07:12 PM
  3. accessing my com port, writing and reading data
    By shoobsie in forum C Programming
    Replies: 7
    Last Post: 09-16-2005, 03:29 PM
  4. need guidance to connect to serial port
    By gnychis in forum Linux Programming
    Replies: 1
    Last Post: 06-02-2005, 10: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