0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02: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"
<< " "
<< "NOTES"
<< " "
<< "YIELDS"
<< " "
<< "CYCLE COUNT"
@ -1565,12 +1567,17 @@ console_cmd__ctx__list(opt &out, const string_view &line)
<< (started(ctx)? 'S' : '-')
<< (running(ctx)? 'R' : '-')
<< (waiting(ctx)? 'W' : '-')
<< (notes(ctx)? 'N' : '-')
<< (finished(ctx)? 'F' : '-')
<< (interruptible(ctx)? '-' : 'N')
<< (interruption(ctx)? 'I' : '-')
<< (termination(ctx)? 'T' : '-')
;
out << " "
<< std::setw(5) << std::right << notes(ctx)
<< " ";
out << " "
<< std::setw(8) << std::right << yields(ctx)
<< " ";