summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-03-07 22:08:03 +0100
committerOskar <[email protected]>2024-03-07 22:08:03 +0100
commit40c0ed42787010b845255544f86f84aac8256ccc (patch)
tree347c12f4ba030426da7966781ca63f52ab895f76
parent256bf3acc9c21c55c955824f1a00bc7cba6b85a8 (diff)
Added USAGE
-rw-r--r--7ed.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/7ed.c b/7ed.c
index cd31f34..12c286d 100644
--- a/7ed.c
+++ b/7ed.c
@@ -8,9 +8,29 @@
#define VERSION 1
#define USAGE "7ed [OPTION] [FILENAME]\n" \
- "\nVALID OPTIONS:\n\n"\
+ "\nVALID COMMAND-LINE OPTIONS:\n\n"\
" -v Prints out the version number\n"\
- " -i Input file\n"
+ " -i Input file\n\n"\
+ "To use the text editor you need to enter appropriate commands.\n"\
+ "The prompt will display the current 'Focus' which is the line number\n"\
+ "that you are currently focused on. So for example the prompt can look like this:\n"\
+ "\n"\
+ "(1): \n"\
+ " \n"\
+ "The '1' is the line number that you are on and after the ':' is where you can\n"\
+ "enter commands.\n"\
+ "\n"\
+ "VALID COMMANDS:\n\n"\
+ " L Opens a new prompt asking for the line number you want to change 'focus' to\n"\
+ " C Prints out the filename and the amount of lines in the file to stdout\n"\
+ " P Prints out the current line that is in 'focus'\n"\
+ " A Prints out the entire file contents to stdout\n"\
+ " Q Quit the program\n"\
+ " E Enter 'edit mode' on the current line in 'focus'\n"\
+ " N Create a newline on the line after focus\n"\
+ " X Remove all contents of a line except the newline itself\n"\
+ " D Remove all contents of a line including the newline itself\n"\
+
#define PROGRAM_NAME "7ed"