Re: one user space progamming problem

2005-11-04 Thread Mariusz Kruk
weiyun lv napisał(a): If you want to simply check stdin, use select or poll. If U want to use other libraries to handle terminal (ncurses? slang?), U'll have to check it's docs to find apropriate functions. if( feof(stdin)){ kbd(); } read(...); this way doesn't work, kbd() is

Re: one user space progamming problem

2005-11-04 Thread weiyun lv
E1. read data from one fifo and display it; E2. Check if there is input from keyboard, if there is then handle it, otherwise do nothing. E1 should always be in execution, while E2 is event driven (when I input something it should be capable of detecting and handling.) If you want to simp

Re: one user space progamming problem

2005-11-04 Thread Mariusz Kruk
weiyun lv napisał(a): one keyboard input problem: my user space program wants to do two things: E1. read data from one fifo and display it; E2. Check if there is input from keyboard, if there is then handle it, otherwise do nothing. E1 should always be in execution, while E2 is event driven (