Last change
on this file was
144,
checked in by rosiere, 14 years ago
|
1) compatible gcc 4.4.3
2) Translation file in MORPHEO_PREFIX directory
|
-
Property svn:keywords set to
Id
|
File size:
476 bytes
|
Line | |
---|
1 | #include "../include/TTY.h" |
---|
2 | #include <stdio.h> |
---|
3 | |
---|
4 | namespace environment { |
---|
5 | namespace tty { |
---|
6 | |
---|
7 | bool TTY::write (uint32_t num_tty, char data) |
---|
8 | { |
---|
9 | if (num_tty >= param->nb_tty) |
---|
10 | return false; |
---|
11 | |
---|
12 | if (param->with_xtty == true) |
---|
13 | { |
---|
14 | if (::write (xtty[num_tty].pipe_output, &data, 1) == -1) |
---|
15 | std::cerr << "<TTY::write> write error.\n" << std::endl; |
---|
16 | } |
---|
17 | |
---|
18 | fputc (data, xtty[num_tty].log_file); |
---|
19 | fflush(xtty[num_tty].log_file); |
---|
20 | |
---|
21 | return true; |
---|
22 | } |
---|
23 | |
---|
24 | }; |
---|
25 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.