openmultiplayer / openmultiplayer/open.mp

Colors in console text

Open
#815 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
641
Forks
208
PR merge metrics
No merged PRs in 30d

Description

I just got this idea, I don't know if it is possible or not. but it's kinda cool.

Foreground
#define RESET "\033[0m"
#define FORE_GREEN "\033[32m"

printf(""FORE_GREEN"This is green"RESET"");
Background
#define RESET "\033[0m"
#define BACK_GREEN "\033[42m"

printf(""BACK_GREEN"Green background"RESET"");

Example output in omp-server console:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides ANSI foreground and background escape-sequence examples and a screenshot of the omp-server console, but no source file or test entry point. Start by locating where omp-server console output is produced and determine terminal support; done means supported terminals display the requested colors and reset formatting correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.