Last change
on this file since 101 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
340 bytes
|
Rev | Line | |
---|
[81] | 1 | #include "../include/TTY.h" |
---|
| 2 | |
---|
| 3 | namespace environment { |
---|
| 4 | namespace tty { |
---|
| 5 | |
---|
| 6 | bool TTY::write (uint32_t num_tty, char data) |
---|
| 7 | { |
---|
| 8 | if (num_tty >= param->nb_tty) |
---|
| 9 | return false; |
---|
| 10 | |
---|
| 11 | if (param->with_xtty == true) |
---|
| 12 | ::write (xtty[num_tty].pipe_output, &data, 1); |
---|
| 13 | |
---|
| 14 | fputc (data, xtty[num_tty].log_file); |
---|
| 15 | |
---|
| 16 | return true; |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | }; |
---|
| 20 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.