- Returns
- the ANSI code corresponding to the attributes
Definition at line 301 of file WindowLog.cc.
References kBlink, kBlue, kBold, kCyan, kDefault, kDim, kGreen, kMagenta, kRed, kReset, kUnderline, kWhite, and kYellow.
308 if ((m&COLOR_PAIR(
kRed) )==COLOR_PAIR(
kRed) ) rc +=
"\033[31m";
309 if ((m&COLOR_PAIR(
kGreen) )==COLOR_PAIR(
kGreen) ) rc +=
"\033[32m";
310 if ((m&COLOR_PAIR(
kYellow) )==COLOR_PAIR(
kYellow) ) rc +=
"\033[33m";
311 if ((m&COLOR_PAIR(
kBlue) )==COLOR_PAIR(
kBlue) ) rc +=
"\033[34m";
313 if ((m&COLOR_PAIR(
kCyan) )==COLOR_PAIR(
kCyan) ) rc +=
"\033[36m";
314 if ((m&COLOR_PAIR(
kWhite) )==COLOR_PAIR(
kWhite) ) rc +=
"\033[0m\033[1m";
316 if ((m&
kBold )==kBold ) rc +=
"\033[1m";
317 if ((m&
kDim )==kDim ) rc +=
"\033[2m";
318 if ((m&
kUnderline)==kUnderline) rc +=
"\033[4m";
319 if ((m&
kBlink )==kBlink ) rc +=
"\033[5m";