fx.term: convert to new assembly build system
This commit is contained in:
+13
-11
@@ -1,8 +1,7 @@
|
||||
#ifndef _FX_PRINT_H_
|
||||
#define _FX_PRINT_H_
|
||||
|
||||
#include <fx/core/misc.h>
|
||||
#include <fx/term.h>
|
||||
#include <fx/misc.h>
|
||||
#include <stdio.h>
|
||||
|
||||
enum z__fx_stream_modifier {
|
||||
@@ -26,28 +25,31 @@ enum z__fx_stream_modifier {
|
||||
Z__FX_STREAM_MOD_RESET = 0x4000,
|
||||
};
|
||||
|
||||
#define Z__FX_STREAM_MOD_GET_FG_COLOUR(x) \
|
||||
#define Z__FX_STREAM_MOD_GET_FG_COLOUR(x) \
|
||||
((x) \
|
||||
& (Z__FX_STREAM_MOD_BLACK | Z__FX_STREAM_MOD_RED \
|
||||
& (Z__FX_STREAM_MOD_BLACK | Z__FX_STREAM_MOD_RED \
|
||||
| Z__FX_STREAM_MOD_GREEN | Z__FX_STREAM_MOD_FX))
|
||||
#define Z__FX_STREAM_MOD_CLEAR_FG_COLOUR(x) \
|
||||
#define Z__FX_STREAM_MOD_CLEAR_FG_COLOUR(x) \
|
||||
((x) \
|
||||
& ~(Z__FX_STREAM_MOD_BLACK | Z__FX_STREAM_MOD_RED \
|
||||
& ~(Z__FX_STREAM_MOD_BLACK | Z__FX_STREAM_MOD_RED \
|
||||
| Z__FX_STREAM_MOD_GREEN | Z__FX_STREAM_MOD_FX))
|
||||
|
||||
#define Z__FX_STREAM_MOD_GET_BG_COLOUR(x) \
|
||||
#define Z__FX_STREAM_MOD_GET_BG_COLOUR(x) \
|
||||
((x) \
|
||||
& (Z__FX_STREAM_MOD_BG_BLACK | Z__FX_STREAM_MOD_BG_RED \
|
||||
& (Z__FX_STREAM_MOD_BG_BLACK | Z__FX_STREAM_MOD_BG_RED \
|
||||
| Z__FX_STREAM_MOD_BG_GREEN | Z__FX_STREAM_MOD_BG_FX))
|
||||
#define Z__FX_STREAM_MOD_CLEAR_BG_COLOUR(x) \
|
||||
#define Z__FX_STREAM_MOD_CLEAR_BG_COLOUR(x) \
|
||||
((x) \
|
||||
& ~(Z__FX_STREAM_MOD_BG_BLACK | Z__FX_STREAM_MOD_BG_RED \
|
||||
& ~(Z__FX_STREAM_MOD_BG_BLACK | Z__FX_STREAM_MOD_BG_RED \
|
||||
| Z__FX_STREAM_MOD_BG_GREEN | Z__FX_STREAM_MOD_BG_FX))
|
||||
|
||||
FX_API int z__fx_stream_is_tty(FILE *fp);
|
||||
FX_API int z__fx_stream_dimensions(FILE *fp, unsigned int *w, unsigned int *h);
|
||||
FX_API int z__fx_stream_cursorpos(
|
||||
FILE *in, FILE *out, unsigned int *x, unsigned int *y);
|
||||
FILE *in,
|
||||
FILE *out,
|
||||
unsigned int *x,
|
||||
unsigned int *y);
|
||||
FX_API int z__fx_stream_set_modifier(FILE *fp, unsigned int mod);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user