source: trunk/IPs/systemC/Environment/TTY/src/TTY_write.cpp@ 110

Last change on this file since 110 was 81, checked in by rosiere, 18 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
Line 
1#include "../include/TTY.h"
2
3namespace environment {
4namespace 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.