public Appres() { toggles = new Ctoggle[N_TOGGLES]; int i; for (i = 0; i < N_TOGGLES; i++) { toggles[i] = new Ctoggle(); } // setup defaults /* Set the defaults. */ this.mono = false; this.extended = true; this.m3279 = false; this.modified_sel = false; this.apl_mode = false; this.scripted = true; this.numeric_lock = false; this.secure = false; //this.oerr_lock = false; this.typeahead = true; this.debug_tracing = true; // this.model = "4"; this.hostsfile = null; this.port = "telnet"; this.charset = "bracket"; this.termname = null; this.macros = null; this.trace_dir = "/tmp"; this.oversize = null; this.icrnl = true; this.inlcr = false; this.onlcr = true; this.erase = "^H"; this.kill = "^U"; this.werase = "^W"; this.rprnt = "^R"; this.lnext = "^V"; this.intr = "^C"; this.quit = "^\\"; this.eof = "^D"; // }
public void toggle(Ctoggle t) { t.vvalue = !t.vvalue; t.changed = true; }