Skip to content
Snippets Groups Projects
Commit 7b10dacd authored by Villsty's avatar Villsty
Browse files

initial commit todo1 ready y

parent 463b008c
No related branches found
No related tags found
No related merge requests found
......@@ -26,4 +26,6 @@ public interface CommandLineInterface {
* @return the text to display
*/
String getScreenContent();
}
......@@ -56,7 +56,7 @@ public class SimpleShell implements CommandLineInterface {
*
* @param key The key that was pressed
*/
@Override
public void KeyPressed(char key) {
if (key == '\n') {
this.processCurrentCommandLine();
......@@ -73,6 +73,7 @@ public class SimpleShell implements CommandLineInterface {
*
* @return the text
*/
public String screenLooks() {
String s = "";
for (String line : this.history) {
......@@ -166,4 +167,14 @@ public class SimpleShell implements CommandLineInterface {
}
return s;
}
@Override
public void keyPressed(char key) {
}
@Override
public String getScreenContent() {
return null;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment