160161162163164165166167168169170
} Transcation tx = comm.startTx(); tx.send("height", getHeight()); tx.send("width", getWidth()); tx.commit(); } public void terminalInput(TextConsole term, String input) { if (!initComplete) { return;
170171172173174175176177178179180
return; } Transcation tx = comm.startTx(); tx.send("input", input); tx.commit(); } @Override protected void calculateColsFromWidth() { int oldCols = getCols();
185186187188189190191192193194195
} if (getCols() != oldCols) { Transcation tx = comm.startTx(); tx.send("cols", getCols()); tx.commit(); } } @Override protected void calculateRowsFromHeight() {
201202203204205206207208209210211
} if (getRows() != oldRows) { Transcation tx = comm.startTx(); tx.send("rows", getRows()); tx.commit(); } } @Override protected void calculateHeightFromRows() {
233234235236237238239240241242243
} String input = getInput(); Transcation tx = comm.startTx(); tx.send("suggest", input); tx.commit(); } public void initClientWidget(Object[] params) { initComplete = true;