Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Pantheios - CHANGES <!-- omit in toc -->


## 1.0.1-rc2 - 6th August 2026

* **bec.AnsiConsole**: on Windows, emit ANSI colours only when the host supports them — Win11 assumed ready, Win10 VT builds opt in via **`SetConsoleMode(... | ENABLE_VIRTUAL_TERMINAL_PROCESSING)`**, older hosts (e.g. XP) stay plain;
* examples and scratch tests: non-Windows console sink moved from **be.fprintf** to **be.AnsiConsole** for simple console demos (via **`define_simple_console_example_*`**, **be.console** / **bec.console** aliases, matching implicit-link headers, and per-project **CMakeLists.txt** / **implicit_link** updates); multiplex / callback / **be.N** cases deferred;


## 1.0.1-rc1 - 5th August 2026

* modular GitHub Actions CI via **`.github/workflows/ci.yml`** and **`ci-cell.yml`** (Linux **Clang**/**GCC**, macOS **Clang**/**GCC**, Windows **cl**/**MinGW**; install-smoke consumer build/run; examples / unit / component / scratch as separate cells);
Expand Down
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

| Date | News Item |
| -------------- | -------------------------------------------------------------------------------- |
| 6th Aug 2026 | [Pantheios 1.0.1-rc2 released](https://github.com/synesissoftware/Pantheios/releases/tag/1.0.1-rc2) |
| 5th Aug 2026 | [Pantheios 1.0.1-rc1 released](https://github.com/synesissoftware/Pantheios/releases/tag/1.0.1-rc1) |
| 18th Nov 2024 | Pantheios 1.0.1-beta222 released |
| 24th Oct 2024 | Pantheios 1.0.1-beta221 released |
Expand Down
8 changes: 4 additions & 4 deletions cmake/TargetMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ function(define_simple_console_example_c program_and_main_source_stem)

target_link_libraries(${program_and_main_source_stem}
PRIVATE
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.be.WindowsConsole,Pantheios.be.fprintf>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.fprintf>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.be.WindowsConsole,Pantheios.be.AnsiConsole>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.AnsiConsole>
)

target_link_libraries(${program_and_main_source_stem}
Expand Down Expand Up @@ -158,8 +158,8 @@ function(define_simple_console_example_cpp program_and_main_source_stem)

target_link_libraries(${program_and_main_source_stem}
PRIVATE
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.be.WindowsConsole,Pantheios.be.fprintf>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.fprintf>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.be.WindowsConsole,Pantheios.be.AnsiConsole>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.AnsiConsole>
)

target_link_libraries(${program_and_main_source_stem}
Expand Down
8 changes: 1 addition & 7 deletions examples/c/example.c.101/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/c/example.c.N/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ target_link_libraries(example.c.N
PRIVATE
Pantheios.be.N
Pantheios.bec.file
Pantheios.bec.fprintf
Pantheios.bec.AnsiConsole
Pantheios.bec.null
)

Expand Down
6 changes: 3 additions & 3 deletions examples/c/example.c.N/example.c.N.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* for be.N
*
* Created: 5th December 2006
* Updated: 14th July 2024
* Updated: 5th August 2026
*
* ////////////////////////////////////////////////////////////////////// */

Expand All @@ -22,7 +22,7 @@
#include <pantheios/frontends/fe.N.h>
#include <pantheios/backends/be.N.h>
#include <pantheios/backends/bec.file.h>
#include <pantheios/backends/bec.fprintf.h>
#include <pantheios/backends/bec.AnsiConsole.h>
#include <pantheios/backends/bec.null.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/backends/bec.syslog.h>
Expand Down Expand Up @@ -55,7 +55,7 @@ pan_fe_N_t PAN_FE_N_SEVERITY_CEILINGS[] =
pan_be_N_t PAN_BE_N_BACKEND_LIST[] =
{
PANTHEIOS_BE_N_STDFORM_ENTRY(1, pantheios_be_file, 0)
, PANTHEIOS_BE_N_STDFORM_ENTRY(2, pantheios_be_fprintf, 0)
, PANTHEIOS_BE_N_STDFORM_ENTRY(2, pantheios_be_AnsiConsole, 0)
, PANTHEIOS_BE_N_STDFORM_ENTRY(3, pantheios_be_null, 0)
#if defined(PLATFORMSTL_OS_IS_UNIX)
, PANTHEIOS_BE_N_STDFORM_ENTRY(4, pantheios_be_syslog, 0)
Expand Down
8 changes: 1 addition & 7 deletions examples/c/example.c.N/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
8 changes: 1 addition & 7 deletions examples/c/example.c.assert/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
8 changes: 1 addition & 7 deletions examples/c/example.c.extended_severity/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
8 changes: 1 addition & 7 deletions examples/c/example.c.log_n/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
8 changes: 1 addition & 7 deletions examples/c/util/example.c.util.gethostname/implicit_link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* - use of pantheios::logputs() in bail-out conditions
*
* Created: 25th August 2006
* Updated: 28th October 2024
* Updated: 5th August 2026
*
* ////////////////////////////////////////////////////////////////////// */

Expand All @@ -19,13 +19,7 @@
/* Pantheios header files */
#include <pantheios/pantheios.hpp> // Pantheios C++ main header
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/backends/bec.fprintf.h> // Include the API for bec.fprintf
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/backends/bec.WindowsConsole.h> // Include the API for bec.WindowsConsole
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/backends/bec.AnsiConsole.h> // Include the API for bec.AnsiConsole

/* Standard C/C++ header files */
#include <exception> // for std::exception
Expand All @@ -50,33 +44,13 @@ PANTHEIOS_EXTERN const PAN_CHAR_T PANTHEIOS_FE_PROCESS_IDENTITY[] = PANTHEIOS_LI

/* ////////////////////////////////////////////////////////////////////// */

#if defined(PLATFORMSTL_OS_IS_UNIX)

PANTHEIOS_CALL(void) pantheios_be_fprintf_getAppInit(
int /* backEndId */
, pan_be_fprintf_init_t* init) /* throw() */
PANTHEIOS_CALL(void) pantheios_be_AnsiConsole_getAppInit(
int /* backEndId */
, pan_be_AnsiConsole_init_t* init) /* throw() */
{
init->flags |= PANTHEIOS_BE_INIT_F_NO_DATETIME; // Don't show date/time
}

#elif defined(PLATFORMSTL_OS_IS_WINDOWS)

PANTHEIOS_CALL(void) pantheios_be_WindowsConsole_getAppInit(
int /* backEndId */
, pan_be_WindowsConsole_init_t* init
) /* throw() */
{
init->flags |= PANTHEIOS_BE_INIT_F_NO_DATETIME; // Don't show date/time

init->colours[pantheios::debug] = FOREGROUND_BLUE | FOREGROUND_INTENSITY; // Lose the white background
init->colours[pantheios::notice] = FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED; // Lose the intensity
}

#else /* ? OS */

# error Platform not discriminated
#endif /* OS */


/* /////////////////////////////////////////////////////////////////////////
* globals
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,7 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <platformstl/platformstl.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/be.fprintf.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/be.WindowsConsole.h>
#else /* ? OS */
# error Platform not discriminated
#endif /* OS */
#include <pantheios/implicit_link/be.AnsiConsole.h>

/* UNIXem header files */
#include <platformstl/platformstl.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ target_link_libraries(example.cpp.backends.mx.1

target_link_libraries(example.cpp.backends.mx.1
PRIVATE
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.fprintf>
Pantheios.bec.AnsiConsole
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsSyslog,Pantheios.bec.syslog>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Purpose: Implementation file for the example.cpp.backends.mx.1 project.
*
* Created: 19th September 2008
* Updated: 27th October 2024
* Updated: 5th August 2026
*
* ////////////////////////////////////////////////////////////////////// */

Expand All @@ -18,11 +18,10 @@
#include <pantheios/frontends/fe.simple.h>
#include <pantheios/backends/be.N.h>
#include <platformstl/platformstl.h>
#include <pantheios/backends/bec.AnsiConsole.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/backends/bec.fprintf.h>
# include <pantheios/backends/bec.syslog.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/backends/bec.WindowsConsole.h>
# include <pantheios/backends/bec.WindowsSyslog.h>
#else /* ? OS */
# error Platform not discriminated
Expand Down Expand Up @@ -63,11 +62,10 @@ enum

pan_be_N_t PAN_BE_N_BACKEND_LIST[] =
{
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_AnsiConsole, 0),
#if defined(PLATFORMSTL_OS_IS_UNIX)
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_fprintf, 0),
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Syslog, pantheios_be_syslog, PANTHEIOS_BE_N_F_ID_MUST_MATCH_CUSTOM28),
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_WindowsConsole, 0),
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Syslog, pantheios_be_WindowsSyslog, PANTHEIOS_BE_N_F_ID_MUST_MATCH_CUSTOM28),
#else /* ? OS */
# error Platform not discriminated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <pantheios/implicit_link/be.N.h>
#include <pantheios/implicit_link/bec.AnsiConsole.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/bec.fprintf.h>
# include <pantheios/implicit_link/bec.syslog.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/bec.WindowsConsole.h>
# include <pantheios/implicit_link/bec.WindowsSyslog.h>
#else /* ? OS */
# error Platform not discriminated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ target_link_libraries(example.cpp.backends.mx.2

target_link_libraries(example.cpp.backends.mx.2
PRIVATE
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.fprintf>
Pantheios.bec.AnsiConsole
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsSyslog,Pantheios.bec.syslog>
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Purpose: Implementation file for the example.cpp.backends.mx.2 project.
*
* Created: 19th September 2008
* Updated: 27th October 2024
* Updated: 5th August 2026
*
* ////////////////////////////////////////////////////////////////////// */

Expand All @@ -18,11 +18,10 @@
#include <pantheios/frontends/fe.simple.h>
#include <pantheios/backends/be.N.h>
#include <platformstl/platformstl.h>
#include <pantheios/backends/bec.AnsiConsole.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/backends/bec.fprintf.h>
# include <pantheios/backends/bec.syslog.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/backends/bec.WindowsConsole.h>
# include <pantheios/backends/bec.WindowsSyslog.h>
#else /* ? OS */
# error Platform not discriminated
Expand Down Expand Up @@ -65,11 +64,10 @@ enum

pan_be_N_t PAN_BE_N_BACKEND_LIST[] =
{
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_AnsiConsole, PANTHEIOS_BE_N_F_IGNORE_NONMATCHED_CUSTOM28_ID),
#if defined(PLATFORMSTL_OS_IS_UNIX)
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_fprintf, PANTHEIOS_BE_N_F_IGNORE_NONMATCHED_CUSTOM28_ID),
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Syslog, pantheios_be_syslog, PANTHEIOS_BE_N_F_ID_MUST_MATCH_CUSTOM28),
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Console, pantheios_be_WindowsConsole, PANTHEIOS_BE_N_F_IGNORE_NONMATCHED_CUSTOM28_ID),
PANTHEIOS_BE_N_STDFORM_ENTRY(beid_Syslog, pantheios_be_WindowsSyslog, PANTHEIOS_BE_N_F_ID_MUST_MATCH_CUSTOM28),
#else /* ? OS */
# error Platform not discriminated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
#include <pantheios/implicit_link/core.h>
#include <pantheios/implicit_link/fe.simple.h>
#include <pantheios/implicit_link/be.N.h>
#include <pantheios/implicit_link/bec.AnsiConsole.h>
#if defined(PLATFORMSTL_OS_IS_UNIX)
# include <pantheios/implicit_link/bec.fprintf.h>
# include <pantheios/implicit_link/bec.syslog.h>
#elif defined(PLATFORMSTL_OS_IS_WINDOWS)
# include <pantheios/implicit_link/bec.WindowsConsole.h>
# include <pantheios/implicit_link/bec.WindowsSyslog.h>
#else /* ? OS */
# error Platform not discriminated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ target_link_Pantheios_core(example.cpp.contract.PANTHEIOS_ASSERT)

target_link_libraries(example.cpp.contract.PANTHEIOS_ASSERT
PRIVATE
Pantheios.be.fprintf
Pantheios.bec.fprintf
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.be.WindowsConsole,Pantheios.be.AnsiConsole>
$<IF:$<STREQUAL:${CMAKE_SYSTEM_NAME},Windows>,Pantheios.bec.WindowsConsole,Pantheios.bec.AnsiConsole>
)

target_link_libraries(example.cpp.contract.PANTHEIOS_ASSERT
Expand Down
Loading
Loading