58903
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2019, the original author or authors.
|
|
3 |
*
|
|
4 |
* This software is distributable under the BSD license. See the terms of the
|
|
5 |
* BSD license in the documentation provided with this software.
|
|
6 |
*
|
|
7 |
* https://opensource.org/licenses/BSD-3-Clause
|
|
8 |
*/
|
52938
|
9 |
package jdk.internal.org.jline.terminal.spi;
|
|
10 |
|
|
11 |
import jdk.internal.org.jline.terminal.Attributes;
|
|
12 |
import jdk.internal.org.jline.terminal.Size;
|
|
13 |
import jdk.internal.org.jline.terminal.Terminal;
|
|
14 |
|
|
15 |
import java.io.IOException;
|
|
16 |
import java.io.InputStream;
|
|
17 |
import java.nio.charset.Charset;
|
|
18 |
import java.util.function.Function;
|
|
19 |
|
|
20 |
public interface JnaSupport {
|
|
21 |
|
|
22 |
Pty current() throws IOException;
|
|
23 |
|
|
24 |
Pty open(Attributes attributes, Size size) throws IOException;
|
|
25 |
|
|
26 |
Terminal winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler) throws IOException;
|
|
27 |
|
|
28 |
Terminal winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused) throws IOException;
|
|
29 |
|
|
30 |
Terminal winSysTerminal(String name, String type, boolean ansiPassThrough, Charset encoding, int codepage, boolean nativeSignals, Terminal.SignalHandler signalHandler, boolean paused, Function<InputStream, InputStream> inputStreamWrapper) throws IOException;
|
|
31 |
|
|
32 |
}
|