Skip to content
Snippets Groups Projects
Commit 315b276a authored by Villsty's avatar Villsty
Browse files

reverted CommandLineInterface.java back to initial state

parent c7b5bfc7
No related branches found
No related tags found
No related merge requests found
package no.uib.inf101.terminal;
// UiB INF101 ShellLab - CommandLineInterface.java
//
// Grensesnittet CommanLineInterface beskriver metoder for input og
// output til et program som virker med et tekstbasert grensesnitt.
// Du trenger ikke gjøre noen endringer i denne filen for denne lab'en.
/**
* A command line interface is a program with a text-based user interface.
* The user can enter keys as input, and the program will respond by giving
......@@ -20,8 +14,6 @@ public interface CommandLineInterface {
*/
void keyPressed(char key);
void KeyPressed(char key);
/**
* Get the text to display on the screen.
*
......
......@@ -18,7 +18,6 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
// TODO 1: Let SimpleShell implement CommandLineInterface
public class SimpleShell implements CommandLineInterface {
//////////////////////////////////////////////////////////////////////
......@@ -33,6 +32,8 @@ public class SimpleShell implements CommandLineInterface {
private final List<String> history = new ArrayList<>();
/** The command currently being typed */
private String currentCommand = "";
// TODO 4: Create instance variable storing Command objects
//////////////////////////////////////////////////////////////////////
......
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