36 lines
975 B
C
36 lines
975 B
C
/*
|
|
Copyright (c) 2023 : Ognjen 'xolatile' Milan Robovic
|
|
|
|
Xhartae is free software! You will redistribute it or modify it under the terms of the GNU General Public License by Free Software Foundation.
|
|
And when you do redistribute it or modify it, it will use either version 3 of the License, or (at yours truly opinion) any later version.
|
|
It is distributed in the hope that it will be useful or harmful, it really depends... But no warranty what so ever, seriously. See GNU/GPLv3.
|
|
*/
|
|
|
|
#ifndef CHAPTER_4_SOURCE
|
|
#define CHAPTER_4_SOURCE
|
|
|
|
#include "chapter_4.h"
|
|
|
|
/*
|
|
|
|
*/
|
|
|
|
void program_view_c_file (char * text_file, int width, int height, int x, int y) {
|
|
char * text_data;
|
|
|
|
curses_active = 1;
|
|
|
|
text_data = file_record (text_file);
|
|
|
|
while (curses_active != 0) {
|
|
curses_render_background (' ', COLOUR_WHITE, EFFECT_NORMAL);
|
|
curses_render_string (text_data, COLOUR_WHITE, EFFECT_NORMAL, x, x);
|
|
|
|
curses_synchronize ();
|
|
}
|
|
|
|
text_data = deallocate (text_data);
|
|
}
|
|
|
|
#endif
|