本文整理汇总了Java中com.googlecode.lanterna.terminal.Terminal.exitPrivateMode方法的典型用法代码示例。如果您正苦于以下问题:Java Terminal.exitPrivateMode方法的具体用法?Java Terminal.exitPrivateMode怎么用?Java Terminal.exitPrivateMode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.googlecode.lanterna.terminal.Terminal
的用法示例。
在下文中一共展示了Terminal.exitPrivateMode方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: main
import com.googlecode.lanterna.terminal.Terminal; //导入方法依赖的package包/类
public static void main(String[] args) {
Terminal terminal = getTerminal();
Size size = getSize(terminal);
Size sizex5 = new Size(size.getWidth()*5, size.getHeight()*5);
List<Level> levels = LevelRegistry.getLevels();
Configuration.init(sizex5, levels);
GameFacadeFactory gameFacadeFactory = new ClippedGameFacadeFactory(size);
PresenterFactory presenterFactory = new PresenterFactory(gameFacadeFactory);
TerminalViewFactory viewFactory = new TerminalViewFactory(terminal);
ViewController controller = new ViewController(viewFactory, presenterFactory);
controller.run();
terminal.exitPrivateMode();
}
示例2: main
import com.googlecode.lanterna.terminal.Terminal; //导入方法依赖的package包/类
public static void main(String[] args) throws IOException {
Terminal t = new TestTerminalFactory(args).createTerminal();
t.enterPrivateMode();
TerminalScreen s = new TerminalScreen(t);
s.startScreen();
try {
Thread.sleep(1000);
}
catch(InterruptedException e) {}
s.stopScreen();
t.exitPrivateMode();
}
示例3: main
import com.googlecode.lanterna.terminal.Terminal; //导入方法依赖的package包/类
public static void main(String[] args) {
Terminal terminal = getTerminal();
Size size = getSize(terminal);
List<Level> levels = LevelRegistry.getLevels();
Configuration.init(size, levels);
TerminalViewFactory viewFactory = new TerminalViewFactory(terminal);
ViewController controller = new ViewController(viewFactory);
controller.run();
terminal.exitPrivateMode();
}