Again...
This commit is contained in:
parent
557cef6f21
commit
bcf3b17e83
17
xtandard.c
17
xtandard.c
@ -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;
|
||||||
|
|
||||||
|
10
xtandard.h
10
xtandard.h
@ -46,16 +46,14 @@ 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 *);
|
||||||
|
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user