diff options
author | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-07-06 22:52:58 -0400 |
---|---|---|
committer | Roderick W. Smith <rodsmith@rodsbooks.com> | 2013-07-06 22:52:58 -0400 |
commit | 1eea9b0b51367472ce12efb59b0018c0ac96a463 (patch) | |
tree | 88c2eacf1fbcb909a24b60fab44151ea137d5965 /gptcurses.cc | |
parent | f5dfbfa418675ca862408e4fb2240b21dd07d558 (diff) | |
download | gptfdisk-1eea9b0b51367472ce12efb59b0018c0ac96a463.tar.gz |
New partition type codes & "-a" option for cgdisk
Diffstat (limited to 'gptcurses.cc')
-rw-r--r-- | gptcurses.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/gptcurses.cc b/gptcurses.cc index 8462149..ec653b0 100644 --- a/gptcurses.cc +++ b/gptcurses.cc @@ -53,6 +53,7 @@ GPTDataCurses::GPTDataCurses(void) { currentSpaceNum = -1; whichOptions = ""; // current set of options currentKey = 'b'; // currently selected option + displayType = USE_CURSES; } // GPTDataCurses constructor GPTDataCurses::~GPTDataCurses(void) { @@ -273,10 +274,16 @@ int GPTDataCurses::DisplayParts(int selected) { for (i = pageNum * numToShow; i <= (pageNum + 1) * numToShow - 1; i++) { if (i < numSpaces) { // real space; show it if (i == selected) { - attron(A_REVERSE); currentSpaceNum = i; - currentSpace = ShowSpace(i, lineNum++); - attroff(A_REVERSE); + if (displayType == USE_CURSES) { + attron(A_REVERSE); + currentSpace = ShowSpace(i, lineNum++); + attroff(A_REVERSE); + } else { + currentSpace = ShowSpace(i, lineNum); + move(lineNum++, 0); + printw(">"); + } DisplayOptions(i); retval = selected; } else { |