Thread: Using Control Characters in Unix

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    5

    Using Control Characters in Unix

    I have a program running in Unix and I want to detect if Ctrl-P has been pressed while this program is running. Is there any simple way to do this?

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    That depends on what you mean by simple. Ctrl-char keypresses are usually signals, which is a type of inter-process communication. It's a tricky subject if you're new to c or system programming. What do you want the ctrl-P to do?

    starX
    www.axisoftime.com

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    5
    We are writing a simple token ring network program as a class excercise. When Ctrl-P is pressed, the terminal that receives the command is supposed to generate the token.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with the control characters
    By vin_pll in forum C++ Programming
    Replies: 12
    Last Post: 10-22-2008, 07:28 AM
  2. Setting up a Unix box
    By @nthony in forum Tech Board
    Replies: 6
    Last Post: 07-22-2007, 10:22 PM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 07:55 AM
  5. About Unix Programming - Making a career desision
    By null in forum C Programming
    Replies: 0
    Last Post: 10-14-2001, 07:37 AM