Changeset 5846 for trunk/Ohana/src/opihi/cmd.data/ps.c
- Timestamp:
- Dec 27, 2005, 5:06:32 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/ps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/ps.c
r3693 r5846 3 3 int ps (int argc, char **argv) { 4 4 5 char filename[1024] , buffer[64];5 char filename[1024]; 6 6 int N, Source, Nsource, RawImage, NoScale, IsImage; 7 7 … … 56 56 57 57 /* tell Ximage/Xgraph to ps the image */ 58 if (RawImage) SendGraphCommand (Source, 4, "PSRW"); 59 if (NoScale) SendGraphCommand (Source, 4, "PSNS"); 60 if (!RawImage && !NoScale) SendGraphCommand (Source, 4, "PSIT"); 61 62 /* I need to fix kapa and kii to read NBYTES, etc like other messages */ 63 SendGraphCommand (Source, 16, "LEN: %11d", strlen(filename)); 64 write (Source, filename, strlen(filename)); 65 read (Source, buffer, 4); 66 58 KiiPS (Source, NoScale, RawImage, filename); 67 59 return (TRUE); 68 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
