Improve sprintf and console output so the block delimiters [ and ] are
configurable.