When writing output to fluid terminal, the current implementation of \more command assumes only 1 screen column is occupied by a character. This is incorrect because a multi-byte character could occupy more than 1 screen column in fluid terminal. In addition, multi-byte character screen boundary alignment problem described by issue #7636 also needs to be taken into consideration on calculation of number of screens rows to be occupied by a string.
The line width now is calculated based on the screen columns occupied by a character. If a character that occupies M columns to be added to the end of a line and there is only N columns left (where M > N), then a new line is created and the M-column character is displayed at the beginning of the newly created line.
Verified using ADStudio 12 RC 22-4 the way \more commands displays 1 block and 2 blocks chars.
Attached fs-vs-bash-more-1-2-blocks-printing.png for reference.
Closed.
Verified using ADStudio 12 RC 22-4 the way \more commands displays 1 block and 2 blocks chars.
Attached fs-vs-bash-more-1-2-blocks-printing.png for reference.
Closed.
Issue #7681 |
Closed |
Fixed |
Resolved |
Completion |
No due date |
Fixed Build trunk/29544 |
No time estimate |
The line width now is calculated based on the screen columns occupied by a character. If a character that occupies M columns to be added to the end of a line and there is only N columns left (where M > N), then a new line is created and the M-column character is displayed at the beginning of the newly created line.