console.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 117 行
JAVA
117 行
/**
* $Id: Console.java,v 1.9 2004/02/21 12:54:19 vchira_2000 Exp $
*/
package org.jnode.driver.console;
import org.jnode.driver.input.KeyboardListener;
import org.jnode.driver.input.PointerListener;
import org.jnode.system.event.FocusListener;
/**
* @author epr
*/
public interface Console extends FocusListener , KeyboardListener, PointerListener {
public static char MOUSE_CURSOR_CHAR = 'X';
/**
* Sets the cursor at the given location.
*
* @param x
* @param y
*/
public void setCursor(int x, int y);
/**
* Gets the X position of the cursor
*
* @return The position
*/
public int getCursorX();
/**
* Gets the Y position of the cursor
*
* @return The Y position
*/
public int getCursorY();
/**
* Set a character at a given location.
*
* @param x
* @param y
* @param ch
* @param bgColor
*/
public void setChar(int x, int y, char ch, int bgColor);
/**
* Set a character at the cursor location.
*
* @param ch
* @param bgColor
*/
public void setChar(char ch, int bgColor);
/**
* Get the character at a given location.
*
* @param x
* @param y
*/
public char getChar(int x, int y);
/**
* Get the bg color at a given location.
*
* @param x
* @param y
*/
public char getBgColor(int x, int y);
/**
* Gets the width of the console.
*
* @return int
*/
public int getWidth();
/**
* Gets the height of the console.
*
* @return int
*/
public int getHeight();
/**
* Add a keyboard listener
*
* @param l
*/
public void addKeyboardListener(KeyboardListener l);
/**
* Remove a keyboard listener
*
* @param l
*/
public void removeKeyboardListener(KeyboardListener l);
/**
* Close this console
*/
public void close();
/**
* returns the registered name for this console
*
* @return registered name for this console
*/
public String getConsoleName();
public void setAcceleratorKeyCode(int keyCode);
public int getAcceleratorKeyCode();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?