|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
hey peeps
im just in the process of studying for my exam and i came across this question which is the reason im writing this here. anyway, if anyone can help, would appreciate it very much. thanks explain how you can access the cotrolling terminal in a program without using the standard input, the standard output and the standard error?? thanks again mile1982 |
|
#2
|
|||
|
|||
|
Quote:
Code:
#include <fcntl.h>
open("/dev/tty0", O_RDWR);
Here's some interesting man pages for you: man 2 open man 3 ttyname hth, M.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
thanks bud
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > session and control terminals |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|