We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1cb627c commit c7174bfCopy full SHA for c7174bf
app/tool/roc.cxx
@@ -139,9 +139,12 @@ static void roc(const std::string& cmd, Target* pft) {
139
: " taken out of RUNMODE");
140
}
141
if (cmd == "STATUS") {
142
- std::cout << "ROC" << pftool::state.iroc
143
- << " with RUNMODE: " << (roc.isRunMode() ? "ON" : "OFF")
144
- << std::endl;
+ for (const auto& i: pft->roc_ids()) {
+ printf("ROC%d is %3s%s\n",
+ i,
145
+ (pft->roc(i).isRunMode() ? "ON" : "OFF"),
146
+ (i == pftool::state.iroc ? " <- selected" : ""));
147
+ }
148
149
if (cmd == "PAGE") {
150
auto page = pftool::readline("Page? ", pftool::state.roc_page_names());
0 commit comments