r3bl-org/r3bl-open-core

[ansi_color] Remove all the arc<mutex<_>> & replace w/ unsafe

Closed this issue · 2 comments

Context:

Related to #108

The reason for adding Arc<Mutex<_>> (and replace unsafe like is used here https://github.com/r3bl-org/r3bl_rs_utils/blob/main/tui/src/tui/terminal_window/static_global_data.rs#L173) was to remove test flakiness. And it didn't really address that problem at all.

Change detect colors support & set override so they use unsafe just like r3bl_tui does to be consistent.

FYI - Currently serial_test = "2.0.0" is used to remove flakiness from tests.

Hey @nazmulidris , can I take up this issue?

@LuciAkirami Thank you 🙏🏽 This issue is all yours. Please let me know if you have any questions.