Skip to content

Instantly share code, notes, and snippets.

@souravrax
Created January 27, 2020 13:02
Show Gist options
  • Select an option

  • Save souravrax/328b1fe1a3b5f9f180d0b083a29f9c54 to your computer and use it in GitHub Desktop.

Select an option

Save souravrax/328b1fe1a3b5f9f180d0b083a29f9c54 to your computer and use it in GitHub Desktop.

Revisions

  1. souravrax created this gist Jan 27, 2020.
    7 changes: 7 additions & 0 deletions Colors_in_c.c
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #include <stdio.h>

    int main(void) {
    // Red text and blue background
    puts("\x1b[31m\x1b[44mHello, World"); // Reset colors to defaults
    printf("\x1b[0m");
    }