From 1d1b2fc25d0e3fb1f1b3fb2e018c1ddabf8ebd5d Mon Sep 17 00:00:00 2001 From: Pherring04 Date: Thu, 11 Apr 2024 15:54:04 -0500 Subject: [PATCH] fixed outdated trick_message function calls in documentation --- .../Status-Message-System.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/documentation/simulation_capabilities/Status-Message-System.md b/docs/documentation/simulation_capabilities/Status-Message-System.md index a93777a15..c2518f9e4 100644 --- a/docs/documentation/simulation_capabilities/Status-Message-System.md +++ b/docs/documentation/simulation_capabilities/Status-Message-System.md @@ -102,9 +102,10 @@ By default these are all enabled. If you disable `file` at startup, the `send_hs That means you cannot then later try to enable and subscribe to file/device. ```cpp -int message_cout_set_enabled(int yes_no) ; -int message_file_set_enabled(int yes_no) ; -int message_device_set_enabled(int yes_no) ; +int set_enabled(bool yes_no) +trick_message.mcout.set_enabled(bool yes_no); +trick_message.mdevice.set_enabled(bool yes_no); +trick_message.mfile.set_enabled(bool yes_no); ``` To enable / disable showing colored messages in Trick's default subscribers: @@ -112,9 +113,10 @@ To enable / disable showing colored messages in Trick's default subscribers: By default color is enabled for `cout` and `device`. Color is achieved by adding ANSI escape codes around the message. ```cpp -int message_cout_set_color(int yes_no) ; -int message_file_set_color(int yes_no) ; -int message_device_set_color(int yes_no) ; +int set_color(bool yes_no) +trick_message.mcout.set_color(bool yes_no); +trick_message.mdevice.set_color(bool yes_no); +trick_message.mfile.set_color(bool yes_no); ``` [Continue to Command Line Arguments](Command-Line-Arguments)