Hello!

This patchset aims to tick off the following from the TODO file.

| possibly use ^[[1m to highlight error messages.

There are numerous points at which the program calls error(), warn(),
etc., and I wanted to implement something that wouldn't require changing
every such call.  So patch 1 adds an API which can wrap a given format
message in select escape sequences, such that the resultant message can
be passed straight to printf-like functions.  This way only the error(),
warn(), etc., function definitions need to be altered to use coloured
output, which patch 2 does.

I did select the colour of error/warning/etc. messages in patch 2 quite
arbitrarily, and would recommend playing around with different colours
and other display attributes to find a good combination.

Lightly tested on macOS 26.4.1 (Tahoe) and Debian 13.4 (trixie).

Take care,
        Seth McDonald.


Seth McDonald (2):
  Add API to support escape sequences
  Integrate support for coloured output

 TODO            |   2 -
 src/Makefile.am |  10 +-
 src/common.h    |   2 +
 src/display.c   | 354 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/display.h   |  46 +++++++
 src/main.c      |  69 ++++++++++
 src/main_p.h    |   1 +
 src/mbsync.1.in |   6 +
 src/util.c      |  69 +++++++++-
 9 files changed, 548 insertions(+), 11 deletions(-)
 create mode 100644 src/display.c
 create mode 100644 src/display.h

Range-diff:
1:  3f7cd64807a5 = 1:  3f7cd64807a5 Add API to support escape sequences
2:  a3c1cd151f48 = 2:  a3c1cd151f48 Integrate support for coloured output

base-commit: 9aaac66286910f547ec3068d3fd72afb4fe716bf
-- 
2.47.3



_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to