Development question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


After a computer crash which conveniently crippled my box during most
of spring break, preventing me from coding anything, I'm back and have
continued. :)

I'm now about to encounter something, and was wondering if some of you
more experienced coders could give me some advice. Is there some way
of determining which program is running in the foreground? E.g. If
someone is at the shell prompt, I'd like to somehow know that
/usr/bin/tcsh is running in the foreground. I was told that there was
no standard way of doing this, but I was wondering if anyone had
another opinion? Are there any functions that I can use for this
purpose? And, if detecting the foreground app is impossible, can
anyone think of some other method that I can use to determine which
application is displaying data to the current TTY? (Tossing aside the
issue of background jobs writing into the foreground for now.)

>              Nolan Darilek             |                                    <
>           nolan_d@xxxxxxxxxxx          |    University of Texas at Austin   <
>         nolan_d@xxxxxxxxxxxxxxx        |      Freshman, Computer Science    <
>              ICQ: 15709478             |      Orientation Advisor, 1999     <
>    |                                    <
      Excerpt from a conversation between a customer support person and a
      customer working for a well-known military-affiliated research lab:
              Support:  "You're not our only customer, you know."
      Customer: "But we're one of the few with tactical nuclear weapons."

[Index of Archives]     [Linux for the Blind]     [Fedora]     [Kernel List]     [Red Hat Install]     [Red Hat Watch List]     [Red Hat Development]     [Gimp]     [Yosemite News]     [Big List of Linux Books]