~vcs-imports/putty/master

Viewing all changes in revision 5335.

  • Committer: Simon Tatham
  • Date: 2019-03-16 12:25:23 UTC
  • Revision ID: git-v1:3936616feb0d37cc00f6ef6df61f858f4015c726
Add line-length limit feature in StripCtrlChars.

Now it can optionally check that output lines don't go beyond a
certain length (measured in terminal columns, via wcwidth, rather than
bytes or characters). In this mode, lines are prefixed with a
distinctive character (namely '|'), and if a line is too long, then it
is broken and the continuation line gets a different prefix ('>').

When StripCtrlChars is targeting a terminal, it asks the terminal to
call wcwidth on its behalf, so it can be sure to use the same idea as
the real terminal about which characters are wide (i.e. depending on
the configuration of ambiguous characters).

This mode isn't yet used anywhere.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: