This commit is contained in:
Ognjen Milan Robovic 2023-08-28 18:53:13 -04:00
parent 557cef6f21
commit bcf3b17e83
2 changed files with 4 additions and 23 deletions

View File

@ -117,23 +117,6 @@ void * record (void) {
return (buffer); return (buffer);
} }
void curses_style (int effect, int colour) {
char format [8] = "\033[ ;3 m";
if ((effect == -1) || (colour == -1)) {
out ("\033[0m", 5);
} else {
format [2] = (char) effect + '0';
format [5] = (char) colour + '0';
out (format, 8);
}
}
void curses_clear (void) {
out ("\033[2J", 5);
}
int string_length (char * string) { int string_length (char * string) {
int length = 0; int length = 0;

View File

@ -46,9 +46,6 @@ extern void * memorize (int);
extern void * record (void); extern void * record (void);
extern void curses_style (int, int);
extern void curses_clear (void);
extern int string_length (char *); extern int string_length (char *);
extern void string_delete (char *); extern void string_delete (char *);
extern void string_reverse (char *); extern void string_reverse (char *);
@ -56,6 +53,7 @@ extern void string_reverse (char *);
extern int string_compare (char *, char *); extern int string_compare (char *, char *);
extern void string_copy (char *, char *); extern void string_copy (char *, char *);
extern void string_concatenate (char *, char *); extern void string_concatenate (char *, char *);
extern int string_compare_limit (char *, char *, int); extern int string_compare_limit (char *, char *, int);
extern void string_copy_limit (char *, char *, int); extern void string_copy_limit (char *, char *, int);
extern void string_concatenate_limit (char *, char *, int); extern void string_concatenate_limit (char *, char *, int);