editor/text.h
Andrew Pamment 0aa48c58e2 Modified!
2021-12-14 21:42:16 +10:00

28 lines
586 B
C

#ifndef TEXT_H
#define TEXT_H
#include <stdio.h>
#include <stdlib.h> // declared in line.h
#include <ctype.h>
#include <string.h> // declared in line.h
#include <curses.h> // -lncurses. declared in page.h
#include "page.h"
#include "prompt.h"
void update_status(char *filename, char *info);
int count_lines(FILE *fp);
void load_file(PAGE *p, char* filename);
void save_file(PAGE *p);
int file_exists(char *filename);
void move_left(int *x, int *y);
void move_right(PAGE *p, int *x, int *y);
void move_up(PAGE *p, int *x, int *y);
void move_down(PAGE *p, int *x, int *y);
#endif