• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

xterm

I have a parent and two children threads. one thread spits out info to stdout, while main program prompt user for further action.  my output, JUST NASTY, is messy.  How can I split the console and dedicate upper portion to thread and lower to main program.  up--> stdout, low-- stdin
little example would help?
0
shisuck
Asked:
shisuck
1 Solution
 
ahoffmannCommented:
a) write to stderr
b) write to file
c) cache stdout/stderr and flush at end of thread
d) use process (fork) instead of threads
0
 
garbouaCommented:
no threads are displaying current status of  seeds, it is usefull information.
0
 
garbouaCommented:
user termio, /usr/include/termio.h
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
shisuckAuthor Commented:
that is NOT my name.
0
 
shisuckAuthor Commented:
show me an example of how to use termio
0
 
superschlonzCommented:
I think you need ncurses for that.
Have a look at the manual, it has many features.
0
 
garbouaCommented:
please either accept an answer or delete.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now