Skip to content

Commit

Permalink
fixed outdated trick_message function calls in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Pherring04 committed Apr 11, 2024
1 parent 0482202 commit 1d1b2fc
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,21 @@ 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:
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)
Expand Down

0 comments on commit 1d1b2fc

Please sign in to comment.