Pseudotty troubles, reads not being done right

This is a discussion on Pseudotty troubles, reads not being done right within the C Programming forums, part of the General Programming Boards category; Hi group, I have written a C program that uses Pseudo TTYs calls, The program work with some problems. character ...

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

    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
    problems.
    • 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: 64.124.13.3/_Examples_/PseudoTTY

    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 01: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, 12:50 PM
  2. Replies: 6
    Last Post: 02-19-2009, 06: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, 12:39 PM

Tags for this Thread


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