0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-18 07:50:57 +01:00

modules/console: Add notification count and state indication.

This commit is contained in:
Jason Volk 2019-04-10 23:03:16 -07:00
parent 6d15db176d
commit 34cbf19466

View file

@ -1542,6 +1542,8 @@ console_cmd__ctx__list(opt &out, const string_view &line)
<< " " << " "
<< "STATE" << "STATE"
<< " " << " "
<< "NOTES"
<< " "
<< "YIELDS" << "YIELDS"
<< " " << " "
<< "CYCLE COUNT" << "CYCLE COUNT"
@ -1565,12 +1567,17 @@ console_cmd__ctx__list(opt &out, const string_view &line)
<< (started(ctx)? 'S' : '-') << (started(ctx)? 'S' : '-')
<< (running(ctx)? 'R' : '-') << (running(ctx)? 'R' : '-')
<< (waiting(ctx)? 'W' : '-') << (waiting(ctx)? 'W' : '-')
<< (notes(ctx)? 'N' : '-')
<< (finished(ctx)? 'F' : '-') << (finished(ctx)? 'F' : '-')
<< (interruptible(ctx)? '-' : 'N') << (interruptible(ctx)? '-' : 'N')
<< (interruption(ctx)? 'I' : '-') << (interruption(ctx)? 'I' : '-')
<< (termination(ctx)? 'T' : '-') << (termination(ctx)? 'T' : '-')
; ;
out << " "
<< std::setw(5) << std::right << notes(ctx)
<< " ";
out << " " out << " "
<< std::setw(8) << std::right << yields(ctx) << std::setw(8) << std::right << yields(ctx)
<< " "; << " ";