diff --git a/neth/main.cpp b/neth/main.cpp index aea1658b9..70107d604 100644 --- a/neth/main.cpp +++ b/neth/main.cpp @@ -117,6 +117,7 @@ void interactiveHelp() << " send Execute a given transaction with current secret." << endl << " contract Create a new contract with current secret." << endl << " inspect Dumps a contract to /.evm." << endl + << " reset Resets ncurses windows" << endl << " exit Exits the application." << endl; } @@ -819,6 +820,15 @@ int main(int argc, char** argv) ofs.close(); } } + else if (cmd == "reset") + { + vector ws { consolewin, blockswin, pendingwin, peerswin, contractswin, addswin, mainwin }; + for (auto &w: ws) + { + wclear(w); + wrefresh(w); + } + } else if (cmd == "help") interactiveHelp(); else if (cmd == "exit")