2021-08-11 05:02:19 -04:00
|
|
|
/* display.h -- display functionality */
|
2013-05-18 01:40:11 -04:00
|
|
|
#ifndef _DISPLAY_H_
|
2021-08-12 23:06:58 -04:00
|
|
|
#define _DISPLAY_H_
|
2013-05-18 01:40:11 -04:00
|
|
|
|
2021-08-12 23:06:58 -04:00
|
|
|
#include <stdarg.h>
|
2015-06-12 05:05:43 -04:00
|
|
|
|
2021-08-18 04:54:35 -04:00
|
|
|
#include "defines.h" /* UNIX */
|
2021-08-12 23:06:58 -04:00
|
|
|
#include "names.h" /* BINDABLE() */
|
|
|
|
#include "utf8.h" /* unicode_t */
|
2015-01-02 07:26:34 -05:00
|
|
|
|
2021-08-12 23:06:58 -04:00
|
|
|
extern int mpresf ; /* Stuff in message line */
|
|
|
|
extern int scrollcount ; /* number of lines to scroll */
|
|
|
|
extern int discmd ; /* display command flag */
|
|
|
|
extern int disinp ; /* display input characters (echo) */
|
|
|
|
extern int gfcolor ; /* global forgrnd color (white) */
|
|
|
|
extern int gbcolor ; /* global backgrnd color (black) */
|
2013-09-29 09:58:54 -04:00
|
|
|
|
2021-08-15 23:05:24 -04:00
|
|
|
/* global variables */
|
|
|
|
extern boolean viewtab ; /* $viewtab = TRUE to visualize hardcoded tab */
|
|
|
|
|
2021-08-11 05:02:19 -04:00
|
|
|
/* Bindable functions */
|
|
|
|
BINDABLE( upscreen) ;
|
|
|
|
|
2013-05-18 01:40:11 -04:00
|
|
|
void vtinit( void) ;
|
|
|
|
void vtfree( void) ;
|
|
|
|
void vttidy( void) ;
|
2021-08-14 23:22:32 -04:00
|
|
|
boolean update( boolean force_f) ;
|
2013-05-18 01:40:11 -04:00
|
|
|
void upmode( void) ;
|
|
|
|
void movecursor( int row, int col) ;
|
|
|
|
void mlerase( void) ;
|
2015-06-12 05:05:43 -04:00
|
|
|
void vmlwrite( const char *fmt, va_list ap) ;
|
2013-05-18 01:40:11 -04:00
|
|
|
void mlwrite( const char *fmt, ...) ;
|
2021-07-19 03:39:00 -04:00
|
|
|
void ostring( const char *s) ;
|
2016-04-08 23:46:40 -04:00
|
|
|
void echoc( unicode_t c) ;
|
2021-07-19 03:39:00 -04:00
|
|
|
void echos( const char *s) ;
|
2019-08-07 04:51:00 -04:00
|
|
|
void rubout( void) ;
|
2013-05-18 01:40:11 -04:00
|
|
|
void getscreensize( int *widthp, int *heightp) ;
|
2013-10-09 02:56:43 -04:00
|
|
|
|
2021-08-12 23:06:58 -04:00
|
|
|
#if UNIX
|
|
|
|
# include <signal.h>
|
|
|
|
# ifdef SIGWINCH
|
|
|
|
extern int chg_width, chg_height ;
|
2021-08-11 05:02:19 -04:00
|
|
|
# endif
|
2021-08-12 23:06:58 -04:00
|
|
|
#endif
|
|
|
|
|
2013-10-09 02:56:43 -04:00
|
|
|
#endif
|
2021-08-11 05:02:19 -04:00
|
|
|
/* end of display.h */
|