May or maynot be a bug, just i didnt expect this result.
If u use the hardwrap option of echo aka -h no burk codes get passed to the next line, the default line color does remain tho.
alias ex1 {
window -c @ex1 | window -ae @ex1
echo @ex1 | echo 7 @ex1 $str(12* Plain Ec4ho Line *,20)
echo @ex1 | echo 7 -h @ex1 $str(12* Hardwrapping Ec4ho Line *,20)
}
I would have liked the current coloring/highlighting settings to migrate to the next line, im not sure if the highlighting (ctrl-B,U & R) settings would have a method to be added unless they actually appeared in the line (i dont know how internally the line is stored) but would be nice.
PS: i have no specific need for this, just noticed while i was doing something else.
edit
To add to this if using CTRL-B for bold the bigger spacing of bold characters remains in place causing the hardwrapping of the lines that have lost it to appear at the wrong size.
example
//echo -h 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 12X 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 <------ this line appears longer in NON fixed size fonts
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 X 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
* same number of characters in line 2 and 3 as line 1 becuase it thinks the lines are still bold
.
//echo -h 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 12X 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 <------ this line appears longer in NON fixed size fonts
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 X 1 2 3 4 5 6 7 8 9 0 1
2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
6 7 8 9 0 1 2 3 4 5 6 7 8 9
* at the X the first is a ctrl-o for ordinary text then color 12, this time the remaineder of the line is considered normal and not bold, so extra characters appear, but not as many as the 3rd line which is all considered normal, so has even more characters.
[b]becuase the bold font on here doesnt show wider than normal the output looks wrong from what im trying to express, you have to amagine the bold is wider reaching to the end of the <---- (arrow)
Last edited by DaveC; 22/07/06 07:09 AM.