Skip to content

Commit

Permalink
improved status output, formatted color vars 😄
Browse files Browse the repository at this point in the history
  • Loading branch information
adiultra committed Jun 5, 2016
1 parent aa079ea commit d5dd76c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 15 deletions.
32 changes: 17 additions & 15 deletions fabric.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@

// Color variables using ANSI sequences

const char Bred[12] = "\033[1;31m";
const char Bgreen[12] = "\033[1;32m";
const char Byellow[12] = "\033[1;33m";
const char Bblue[12] = "\033[1;34m";
const char Bmagenta[12] = "\033[1;35m";
const char Bcyan[12] = "\033[1;36m";

const char red[12] = "\033[;31m";
const char green[12] = "\033[;32m";
const char yellow[12] = "\033[;33m";
const char blue[12] = "\033[;34m";
const char magenta[12] = "\033[;35m";
const char cyan[12] = "\033[;36m";

const char normal[12] = "\033[0;m";
const char Bred[12] = "\033[1;31m";
const char Bgreen[12] = "\033[1;32m";
const char Byellow[12] = "\033[1;33m";
const char Bblue[12] = "\033[1;34m";
const char Bmagenta[12] = "\033[1;35m";
const char Bcyan[12] = "\033[1;36m";

const char red[12] = "\033[;31m";
const char green[12] = "\033[;32m";
const char yellow[12] = "\033[;33m";
const char blue[12] = "\033[;34m";
const char magenta[12] = "\033[;35m";
const char cyan[12] = "\033[;36m";

const char normal[12] = "\033[0;m";

// Classes

class Todo{
public:
Expand Down
4 changes: 4 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,10 +408,14 @@ void status(){
// Display wether a list is open or not
if (isOpenL) {
cout << "This List is open : " << currentL.title << endl;
cout << "Total No. of todos : " << currentL._listIndex << endl;
}

else {
cout << "No list is open" << endl;
}

cout << "Total lists = " << _arrayLindex << endl;
}

void openL(int index) {
Expand Down

0 comments on commit d5dd76c

Please sign in to comment.