frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.black); frame.sessionPane.setIconAt(frame.sessionPane.getSelectedIndex(),unfocused);   frame.sessionPane.setSelectedIndex(frame.sessionPane.getTabCount()-1); frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.blue); frame.sessionPane.setIconAt(frame.sessionPane.getSelectedIndex(),focused); s.addSessionListener(this);
   synchronized void newSession(String sel,String[] args) {      Properties sesProps = new Properties();      String propFileName = null;      String session = args[0];      // Start loading properties      sesProps.put(SESSION_HOST,session);      if (isSpecified("-e",args))         sesProps.put(SESSION_TN_ENHANCED,"1");      if (isSpecified("-p",args)) {         sesProps.put(SESSION_HOST_PORT,getParm("-p",args));      }      if (isSpecified("-f",args))         propFileName = getParm("-f",args);      if (isSpecified("-cp",args))         sesProps.put(SESSION_CODE_PAGE ,getParm("-cp",args));      if (isSpecified("-gui",args))         sesProps.put(SESSION_USE_GUI,"1");      if (isSpecified("-132",args))         sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_27X132_STR);      else         sesProps.put(SESSION_SCREEN_SIZE,SCREEN_SIZE_24X80_STR);      // are we to use a socks proxy      if (isSpecified("-usp",args)) {         // socks proxy host argument         if (isSpecified("-sph",args)) {            sesProps.put(SESSION_PROXY_HOST ,getParm("-sph",args));         }         // socks proxy port argument         if (isSpecified("-spp",args))            sesProps.put(SESSION_PROXY_PORT ,getParm("-spp",args));      }      // check if device name is specified      if (isSpecified("-dn",args))         sesProps.put(SESSION_DEVICE_NAME ,getParm("-dn",args));      Session s = manager.openSession(sesProps,propFileName,sel);      if (isSpecified("-t",args))         frame.sessionPane.addTab(sel,focused,s);      else         frame.sessionPane.addTab(session,focused,s);      frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.black);      frame.sessionPane.setIconAt(frame.sessionPane.getSelectedIndex(),unfocused);      frame.sessionPane.setSelectedIndex(frame.sessionPane.getTabCount()-1);      frame.sessionPane.setForegroundAt(frame.sessionPane.getSelectedIndex(),Color.blue);      frame.sessionPane.setIconAt(frame.sessionPane.getSelectedIndex(),focused);      s.addSessionListener(this);      s.connect();   }