You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: edit.h
+16-8Lines changed: 16 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -65,37 +65,45 @@ struct File
65
65
boolsaved;
66
66
};
67
67
68
-
structChange
68
+
/*struct Change //Not implemented, possibly later
69
69
{
70
70
int line; //Line of the change
71
71
char *ot; //Old text of the line
72
72
char *nt; //New text of the line
73
73
struct Change *prev;
74
74
struct Change *next;
75
-
};
75
+
};*/
76
76
77
77
externintmode, svdmd;
78
78
externcharln[NAME_MAX];
79
79
80
80
//Define our functions
81
+
82
+
//print.c
81
83
voidinitialize_editor(); //Initialize NCurses and color mode
82
84
voidborder_line_print(int, char*, structWindow*); //Print a Cyan line at row "r" with text "t", with restrictions of Window "w"
83
85
voidcontent_line_print(int, structWindow*, structCursor*); //Print line at row "r" with text "t", with restrictions and contents of Window "w", using cursor position x,y
84
-
voidprint_editor(structWindow*); //Prints the editor sans file contents
85
86
voidprint_contents(structWindow*, structCursor*, structFile*); //Prints the inner contents of the editor
/*Print a Cyan line at row "r" with text "t", with
45
+
*restrictions of Window "w"
46
+
*/
42
47
{
43
48
attrset(COLOR_PAIR(BOUNDARY_SCHEME)); //Turn on attribute for the boundary color scheme
44
49
move(r, 0); //Set cursor to the beginning of the line for the y-position "row"
@@ -50,7 +55,10 @@ void border_line_print(int r, char *t, struct Window *w) //Print a Cyan line at
50
55
move(r, 0); //Move the cursor back to the beginning of the line of the first row printed
51
56
}
52
57
53
-
voidcontent_line_print(intr, structWindow*w, structCursor*c) //Print line at row "r" with text "t", with restrictions and contents of Window "w", using cursor position x,y
0 commit comments