tail_core 0.1.0

Core library for the Tail operating system
Documentation
// Copyright 2025, TAIL OS. All Rights Reserved.
//
// You must obtain a written license from and pay applicable license fees to TAIL OS
// before you may reproduce, modify, or distribute this software, or any work that
// includes all or part of this software.
//
// Free development licenses are available for evaluation, research, and non-commercial
// purposes, which may include access to the source code under these terms. Redistribution
// or commercial use without a license is strictly prohibited.
//
// This file may contain contributions from others. Please review this entire file for
// other proprietary rights or license notices, as well as the TAIL OS License Guide at
// https://tail-os.com/license-guide/ for more information.
//
// For licensing inquiries, visit https://tail-os.com or email license@tail-os.com.


#![allow(dead_code)]

// example
// kprint("{}red letter{}", RED, RESET);

pub const RED: &str = "\x1B[31m";
pub const GRN: &str = "\x1B[32m";
pub const YEL: &str = "\x1B[33m";
pub const BLU: &str = "\x1B[34m";
pub const MAG: &str = "\x1B[35m";
pub const CYN: &str = "\x1B[36m";
pub const WHT: &str = "\x1B[37m";
pub const BOLD: &str = "\x1B[1m";
pub const RESET: &str = "\x1B[0m";

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn test_rich_text() {
        assert_eq!(RED, "\x1B[31m");
        assert_eq!(GRN, "\x1B[32m");
        assert_eq!(YEL, "\x1B[33m");
        assert_eq!(BLU, "\x1B[34m");
        assert_eq!(MAG, "\x1B[35m");
        assert_eq!(CYN, "\x1B[36m");
        assert_eq!(WHT, "\x1B[37m");
        assert_eq!(RESET, "\x1B[0m");
    }
}