written initial prototype in rust
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#include <ncurses.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
typedef struct {
|
||||
int file_line;
|
||||
int file_col;
|
||||
int buff_line;
|
||||
int buff_col;
|
||||
int editmode;
|
||||
} EditorData;
|
||||
|
||||
void help() {
|
||||
printf("Usage:\n");
|
||||
printf(" cmd open <path/to/file> // opens the specified file\n");
|
||||
printf(" cmd rm <path/to/file> // deletes the specified file\n");
|
||||
printf(" cmd new <path/to/file> // creates a new empty file at the specified path\n");
|
||||
printf(" cmd mv <path/to/file> <new/path> // moves the specified file to the new path\n");
|
||||
printf(" cmd cp <path/to/file> <new/path> // copies the specified file to the new path\n");
|
||||
printf(" cmd len <path/to/file> // returns the length of the specified file\n");
|
||||
printf(" cmd log // prints a list of all changes made to the file\n");
|
||||
}
|
||||
Reference in New Issue
Block a user