Thread: Pseudotty troubles, reads not being done right

  1. #1
    Registered User
    Join Date
    Nov 2008
    Mt Umunum, CA

    Pseudotty troubles, reads not being done right

    Hi group,
    I have written a C program that uses Pseudo TTYs calls, The program work with some
    • character are not read immediately read.
    • man causes a program exit
    • up arrow does not display recalled command
    • top does not exit after 'q' until I hit enter.
    These are some of the problems.

    I use termios to set the PTSs to non-canonical, vtime = 0, vmin = 1, which should allow reading a single chartacter but it does not?

    The program uses a pair pf PTS to call 'bash' and communicate to/from to the program.

    The program can be found at:

    Any ideas on how to fix these problems?

    Thanks for your time.

    William Estrada
    <<email address snipped>>
    Last edited by Salem; 11-23-2008 at 02:45 PM. Reason: Snip email address

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help C programming that reads value of x and n?
    By Cyberman86 in forum C Programming
    Replies: 5
    Last Post: 03-02-2009, 01:50 PM
  2. Replies: 6
    Last Post: 02-19-2009, 07:19 PM
  3. Replies: 8
    Last Post: 09-04-2008, 09:56 AM
  4. Replies: 4
    Last Post: 08-08-2005, 03:12 PM
  5. pipeline troubles
    By Qui in forum Linux Programming
    Replies: 1
    Last Post: 02-18-2005, 01:39 PM

Tags for this Thread