[comp.unix.internals] Terminal driver process control group ioctl

jdubb@bucsf.bu.edu (jay dubb) (01/03/91)

I am posting this for a friend who doesn't have access to USENET, so
please reply to mlevin@jade.tufts.edu.

    This question regards a BSD Unix 4.3 C program:
    Does anyone know how to make sure that a program's screen output
(a curses graphics menu, for example) isn't disrupted by output from
other processes? I do a chmod() on the terminal file to make sure no
other users mess up the screen, but what do I do about background
processes which may want to write to the terminal while the program is
writing? I imagine it has something to do with setting the process
control groups of the process, and using ioctl() to communicate with
the terminal driver. Am I on the right track? If so, I'd appreciate
any information on how to do this. If not, where should I be looking? 

Thanks. Please reply to mlevin@jade.tufts.edu.

					Mike Levin