Last change
on this file since 145 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
|
Rev | Line | |
---|
[81] | 1 | #include "../include/TTY.h" |
---|
[144] | 2 | #include <stdio.h> |
---|
[81] | 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) |
---|
[144] | 13 | { |
---|
| 14 | if (::write (xtty[num_tty].pipe_output, &data, 1) == -1) |
---|
| 15 | std::cerr << "<TTY::write> write error.\n" << std::endl; |
---|
| 16 | } |
---|
[81] | 17 | |
---|
| 18 | fputc (data, xtty[num_tty].log_file); |
---|
[117] | 19 | fflush(xtty[num_tty].log_file); |
---|
[81] | 20 | |
---|
| 21 | return true; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | }; |
---|
| 25 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.