Changeset 2607 in Sophya
- Timestamp:
- Sep 7, 2004, 11:03:04 AM (21 years ago)
- Location:
- trunk/SophyaPI/PI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PI/piapplgen.h
r1592 r2607 36 36 37 37 virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def) = 0; 38 virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_ Ital|PIVA_Red) = 0;38 virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Red) = 0; 39 39 40 40 protected: -
trunk/SophyaPI/PI/piapplx.cc
r2322 r2607 327 327 static void redirectstream_callback(XtPointer cld, int * fd, XtInputId* /*iid*/) 328 328 { 329 char buff[ 128];329 char buff[512]; 330 330 int nr; 331 331 … … 333 333 if (idx != 1) idx = 0; 334 334 if (!consstream[idx]) return; 335 while ( (nr=read(*fd, buff, 127)) > 0 ) {335 while ( (nr=read(*fd, buff, 512)) > 0 ) { 336 336 buff[nr] = '\0'; consstream[idx]->AddStr(buff, streamva[idx], false); 337 337 } -
trunk/SophyaPI/PI/piapplx.h
r1592 r2607 25 25 26 26 virtual void RedirectOutStream(PIConsole* cons, unsigned char va= PIVA_Def); 27 virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_ Ital|PIVA_Red);27 virtual void RedirectErrStream(PIConsole* cons, unsigned char va= PIVA_Red); 28 28 29 29 PIContainer* MBCont() { return intcont; }
Note:
See TracChangeset
for help on using the changeset viewer.