|
1
2
3
4
5
6
7
8
9
10
11
|
package pad.prac1;
import java.io.IOException;
import java.io.InputStreamReader;
public class MainClass
{
public static void main(String[] argv) throws IOException
{
InputStreamReader input = new InputStreamReader(System.in);
EditableBufferedReader editable = new EditableBufferedReader(input);
|
|
12
|
System.out.println("\nLine read: \n" + editable.readLine());
|
|
13
14
15
|
editable.close();
}
}
|
|
16
17
18
19
20
21
22
23
|
/* TO-DO
* up/down keys
* pgup pgdown keys (goesto penultima linea visible)
* implement change of terminal dimensions
*
* TO-FIX
* Cursor keys, Home and end keys when new line, reset line length
|
|
24
|
* SPEED
|
|
25
|
*/
|