AppStatus.truncateLength

Check the length of the buffer against the number of columns in the terminal. If the buffer is too long, set it to the terminal width.

  1. char[] truncateLength(char[] buffer)
    class AppStatus
    protected
    char[]
    truncateLength
    (
    ref char[] buffer
    )
  2. char[] truncateLength(char[] buffer, size_t max)

Parameters

buffer char[]

buffer to check the length of

Return Value

Type: char[]

the truncated buffer

Meta