protected void printMethodList(Session session, PrintStream out, SortedMap<String, String> commands) {
Terminal term = session.getTerminal();
int termWidth = term != null ? term.getWidth() : 80;
out.println(SimpleAnsi.INTENSITY_BOLD + "COMMANDS" + SimpleAnsi.INTENSITY_NORMAL);
ShellTable table = new ShellTable().noHeaders().separator(" ").size(termWidth);
table.column(new Col("Command").maxSize(64));
table.column(new Col("Description"));
for (Map.Entry<String,String> entry : commands.entrySet()) {
String key = NameScoping.getCommandNameWithoutGlobalPrefix(session, entry.getKey());
table.addRow().addContent(SimpleAnsi.INTENSITY_BOLD + key + SimpleAnsi.INTENSITY_NORMAL, entry.getValue());
}