Stock Market Simulator main e8c3612
A game that provides a realistic stock buying experience with unpredictable trends to test investment strategies.
|
ANSI Escape Code related functions. More...
#include "format.h"
Go to the source code of this file.
Functions | |
void | fetchConsoleDimensions (int &row, int &col) |
string | setCursorPosition (int offsetY, int offsetX) |
Variables | |
const string | bgBlack = "\x1b[40m" |
const string | bgBlue = "\x1b[44m" |
const string | bgCyan = "\x1b[46m" |
const string | bgDefault = "\x1b[49m" |
const string | bgGreen = "\x1b[42m" |
const string | bgMagenta = "\x1b[45m" |
const string | bgRed = "\x1b[41m" |
const string | bgWhite = "\x1b[47m" |
const string | bgYellow = "\x1b[43m" |
const int | sleepLong = 1000 |
const int | sleepMedium = 500 |
const int | sleepShort = 100 |
const string | textBlack = "\x1b[30m" |
const string | textBlue = "\x1b[34m" |
const string | textBold = "\x1b[1m" |
const string | textClear = "\x1b[2J" |
const string | textCyan = "\x1b[36m" |
const string | textDefault = "\x1b[39m" |
const string | textGreen = "\x1b[32m" |
const string | textItalic = "\x1b[3m" |
const string | textMagenta = "\x1b[35m" |
const string | textRed = "\x1b[31m" |
const string | textReset = "\x1b[0m" |
const string | textStrikethrough = "\x1b[9m" |
const string | textUnderline = "\x1b[4m" |
const string | textWhite = "\x1b[37m" |
const string | textYellow = "\x1b[33m" |
ANSI Escape Code related functions.
Definition in file format.cpp.
void fetchConsoleDimensions | ( | int & | row, |
int & | col ) |
Definition at line 62 of file format.cpp.
Referenced by main().
string setCursorPosition | ( | int | offsetY, |
int | offsetX ) |
Definition at line 56 of file format.cpp.
Referenced by advanceConfirmation(), buyStocks(), drawButton(), drawEventBar(), drawLogo(), drawRoundInfo(), integerInput(), listEvents(), main(), optionsInput(), print_table(), quitConfirmation(), and sellStocks().
const string bgBlack = "\x1b[40m" |
Definition at line 39 of file format.cpp.
Referenced by drawButton().
const string bgBlue = "\x1b[44m" |
Definition at line 43 of file format.cpp.
const string bgCyan = "\x1b[46m" |
Definition at line 45 of file format.cpp.
const string bgDefault = "\x1b[49m" |
Definition at line 38 of file format.cpp.
const string bgGreen = "\x1b[42m" |
Definition at line 41 of file format.cpp.
const string bgMagenta = "\x1b[45m" |
Definition at line 44 of file format.cpp.
const string bgRed = "\x1b[41m" |
Definition at line 40 of file format.cpp.
const string bgWhite = "\x1b[47m" |
Definition at line 46 of file format.cpp.
Referenced by drawButton().
const string bgYellow = "\x1b[43m" |
Definition at line 42 of file format.cpp.
const int sleepLong = 1000 |
Definition at line 50 of file format.cpp.
Referenced by main().
const int sleepMedium = 500 |
Definition at line 49 of file format.cpp.
Referenced by buyStocks(), drawLogo(), integerInput(), main(), optionsInput(), and sellStocks().
const int sleepShort = 100 |
Definition at line 48 of file format.cpp.
Referenced by drawLogo().
const string textBlack = "\x1b[30m" |
Definition at line 29 of file format.cpp.
Referenced by drawButton().
const string textBlue = "\x1b[34m" |
Definition at line 33 of file format.cpp.
const string textBold = "\x1b[1m" |
Definition at line 23 of file format.cpp.
Referenced by drawButton().
const string textClear = "\x1b[2J" |
Definition at line 20 of file format.cpp.
Referenced by drawLogo(), and main().
const string textCyan = "\x1b[36m" |
Definition at line 35 of file format.cpp.
const string textDefault = "\x1b[39m" |
Definition at line 28 of file format.cpp.
Referenced by printgraphblocks().
const string textGreen = "\x1b[32m" |
Definition at line 31 of file format.cpp.
Referenced by graph_plotting(), print_table(), and printgraphblocks().
const string textItalic = "\x1b[3m" |
Definition at line 24 of file format.cpp.
const string textMagenta = "\x1b[35m" |
Definition at line 34 of file format.cpp.
const string textRed = "\x1b[31m" |
Definition at line 30 of file format.cpp.
Referenced by graph_plotting(), print_table(), and printgraphblocks().
const string textReset = "\x1b[0m" |
Definition at line 21 of file format.cpp.
Referenced by drawButton().
const string textStrikethrough = "\x1b[9m" |
Definition at line 26 of file format.cpp.
const string textUnderline = "\x1b[4m" |
Definition at line 25 of file format.cpp.
const string textWhite = "\x1b[37m" |
Definition at line 36 of file format.cpp.
Referenced by drawButton(), graph_plotting(), and print_table().
const string textYellow = "\x1b[33m" |
Definition at line 32 of file format.cpp.