-
Notifications
You must be signed in to change notification settings - Fork 147
Colorize Text
Joshua Hiller edited this page Nov 5, 2025
·
3 revisions
This helper provides developers with a simple class that can be leveraged to add color to terminal text output by providing standard ANSI escape sequences as attributes.
The Color class was first introduced in FalconPy v1.5.1.
This function provides support for the following ANSI colors.

Support for BOLD and UNDERLINE is also provided.
This class provides the following attributes.
| Attribute | Returns |
|---|---|
| PURPLE | \033[95m |
| CYAN | \033[96m |
| DARKCYAN | \033[36m |
| MAGENTA | \033[35m |
| BLUE | \033[34m |
| LIGHTBLUE | \033[94m |
| GREEN | \033[32m |
| LIGHTGREEN | \033[92m |
| LIGHTYELLOW | \033[93m |
| YELLOW | \033[33m |
| RED | \033[31m |
| LIGHTRED | \033[91m |
| BOLD | \033[1m |
| UNDERLINE | \033[4m |
| END | \033[0m |
To prevent bleed, END is used to close the colorized text block and should always be provided.
Class attributes are returned as strings, meaning they can be interpolated directly into strings intended for terminal output.
from falconpy import Color
result = f"This string contains {Color.RED}red {Color.BOLD}bold{Color.END} text"
print(result)

- Home
- Discussions Board
- Glossary of Terms
- Installation, Upgrades and Removal
- Samples Collection
- Using FalconPy
- API Operations
-
Service Collections
- Alerts
- API Integrations
- ASPM
- CAO Hunting
- Certificate Based Exclusions
- Cloud AWS Registration
- Cloud Azure Registration
- Cloud OCI Registration
- Cloud Connect AWS (deprecated)
- Cloud Security Assets
- Cloud Snapshots
- Configuration Assessment
- Configuration Assessment Evaluation Logic
- Container Alerts
- Container Detections
- Container Image Compliance
- Container Images
- Container Packages
- Container Vulnerabilities
- Content Update Policies
- Correlation Rules
- CSPM Registration
- Custom IOAs
- Custom Storage
- D4C Registration (deprecated)
- DataScanner (deprecated)
- Delivery Settings
- Deployments
- Detects (deprecated)
- Device Content
- Device Control Policies
- Discover
- Downloads
- Drift Indicators
- Event Streams
- Exposure Management
- FaaS Execution
- Falcon Complete Dashboard
- Falcon Container
- Falcon Intelligence Sandbox
- FDR
- FileVantage
- Firewall Management
- Firewall Policies
- Foundry LogScale
- Host Group
- Host Migration
- Hosts
- Identity Protection
- Image Assessment Policies
- Incidents
- Installation Tokens
- Intel
- Intelligence Feeds
- Intelligence Indicator Graph
- IOA Exclusions
- IOC
- IOCs (deprecated)
- IT Automation
- Kubernetes Container Compliance
- Kubernetes Protection
- MalQuery
- Message Center
- ML Exclusions
- Mobile Enrollment
- MSSP (Flight Control)
- NGSIEM
- OAuth2
- ODS (On Demand Scan)
- Overwatch Dashboard
- Prevention Policy
- Quarantine
- Quick Scan
- Quick Scan Pro
- Real Time Response
- Real Time Response Admin
- Real Time Response Audit
- Recon
- Report Executions
- Response Policies
- Sample Uploads
- Scheduled Reports
- Sensor Download
- Sensor Update Policy
- Sensor Usage
- Sensor Visibility Exclusions
- Serverless Vulnerabilities
- Spotlight Evaluation Logic
- Spotlight Vulnerabilities
- Tailored Intelligence
- ThreatGraph
- Unidentified Containers
- User Management
- Workflows
- Zero Trust Assessment
- Documentation Support
-
CrowdStrike SDKs
- Crimson Falcon - Ruby
- FalconPy - Python 3
- FalconJS - Javascript
- goFalcon - Go
- PSFalcon - Powershell
- Rusty Falcon - Rust
