|
From: <kin...@us...> - 2023-07-14 12:29:57
|
Revision: 7101
http://sourceforge.net/p/teem/code/7101
Author: kindlmann
Date: 2023-07-14 12:29:56 +0000 (Fri, 14 Jul 2023)
Log Message:
-----------
updating how multi-line piping works to move away from csh towards bash and friends, making output respect hparm->columns
Modified Paths:
--------------
teem/trunk/src/ten/tendAbout.c
Modified: teem/trunk/src/ten/tendAbout.c
===================================================================
--- teem/trunk/src/ten/tendAbout.c 2023-07-14 12:28:18 UTC (rev 7100)
+++ teem/trunk/src/ten/tendAbout.c 2023-07-14 12:29:56 UTC (rev 7101)
@@ -58,10 +58,10 @@
"following, which estimates tensors from DWIs, takes a slice of the "
"tensor volume, computes the standard RGB colormap of the principal "
"eigenvector, and then quantizes it to an 8-bit PNG:\n";
- char par4[] = "\ttend estim -i dwi.nhdr -B kvp -knownB0 true \\\n "
- " | tend slice -a 2 -p 30 \\\n "
- " | tend evecrgb -c 0 -a cl2 -gam 1.2 \\\n "
- " | unu quantize -b 8 -min 0 -max 1 -o z30-rgb.png\n";
+ char par4[] = "\ttend estim -i dwi.nhdr -B kvp -knownB0 true |\n "
+ " tend slice -a 2 -p 30 |\n "
+ " tend evecrgb -c 0 -a cl2 -gam 1.2 |\n "
+ " unu quantize -b 8 -min 0 -max 1 -o z30-rgb.png\n";
AIR_UNUSED(argc);
AIR_UNUSED(argv);
@@ -76,10 +76,10 @@
fprintf(stdout, fmt, buff);
fprintf(stdout, "\n");
- _hestPrintStr(stdout, 1, 0, 78, par1, AIR_FALSE);
- _hestPrintStr(stdout, 1, 0, 78, par2, AIR_FALSE);
- _hestPrintStr(stdout, 1, 0, 78, par3, AIR_FALSE);
- _hestPrintStr(stdout, 2, 0, 78, par4, AIR_FALSE);
+ _hestPrintStr(stdout, 1, 0, hparm->columns, par1, AIR_FALSE);
+ _hestPrintStr(stdout, 1, 0, hparm->columns, par2, AIR_FALSE);
+ _hestPrintStr(stdout, 1, 0, hparm->columns, par3, AIR_FALSE);
+ _hestPrintStr(stdout, 2, 0, hparm->columns, par4, AIR_FALSE);
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|