package org.h3270.host; /* * Copyright (C) 2003-2008 akquinet tech@spree * * This file is part of h3270. * * h3270 is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * h3270 is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with h3270; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA */ /** * Represents a terminal line connected to the host. * * @author Andre Spiegel spiegel@gnu.org * @version $Id: Terminal.java,v 1.10 2008/11/21 14:47:22 spiegel Exp $ */ public interface Terminal { public abstract void disconnect(); public abstract boolean isConnected(); public abstract String getHostname(); public abstract void dumpScreen(String filename); public abstract void updateScreen(); public abstract Screen getScreen(); public abstract void submitScreen(); public abstract void submitUnformatted(String data); public abstract String getLogicalUnit(); public abstract void clear(); public abstract void enter(); public abstract void newline(); public abstract void eraseEOF(); public abstract void pa(int number); public abstract void pf(int number); public abstract void reset(); public abstract void sysReq(); public abstract void attn(); /** * Invokes a key, based on its textual representation. * @throws IllegalArgumentException when there is no such key defined */ public abstract void doKey(String key); }