editor/text.h
2015-08-28 21:53:20 -07:00

27 lines
538 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 <ncurses.h> // -lncurses. declared in page.h
#include "page.h"
#include "prompt.h"
void update_status(char *info);
int count_lines(FILE *fp);
void load_file(PAGE *p, char* filename);
void save_file(PAGE *p);
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