2013-05-18 01:40:11 -04:00
|
|
|
#ifndef _DISPLAY_H_
|
|
|
|
#define _DISPLAY_H_
|
|
|
|
|
2015-06-12 05:05:43 -04:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2015-01-02 07:26:34 -05:00
|
|
|
#include "estruct.h"
|
2016-04-08 23:46:40 -04:00
|
|
|
#include "utf8.h"
|
2015-01-02 07:26:34 -05:00
|
|
|
|
2013-09-29 09:58:54 -04:00
|
|
|
extern int mpresf ; /* Stuff in message line */
|
2013-10-09 02:38:55 -04:00
|
|
|
extern int scrollcount ; /* number of lines to scroll */
|
2013-10-09 04:58:33 -04:00
|
|
|
extern int discmd ; /* display command flag */
|
2016-03-11 23:58:05 -05:00
|
|
|
extern int disinp ; /* display input characters (echo) */
|
2013-10-09 04:58:33 -04:00
|
|
|
extern int gfcolor ; /* global forgrnd color (white) */
|
|
|
|
extern int gbcolor ; /* global backgrnd color (black) */
|
2013-09-29 09:58:54 -04:00
|
|
|
|
2013-05-18 01:40:11 -04:00
|
|
|
void vtinit( void) ;
|
|
|
|
void vtfree( void) ;
|
|
|
|
void vttidy( void) ;
|
|
|
|
int upscreen( int f, int n) ;
|
|
|
|
int update( int force) ;
|
|
|
|
void updpos( void) ;
|
|
|
|
void upddex( void) ;
|
|
|
|
void updgar( void) ;
|
|
|
|
int updupd( int force) ;
|
|
|
|
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, ...) ;
|
2016-03-11 23:58:05 -05:00
|
|
|
void ostring( char *s) ;
|
2016-04-08 23:46:40 -04:00
|
|
|
void echoc( unicode_t c) ;
|
2016-03-11 23:58:05 -05:00
|
|
|
void echos( 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
|
|
|
|
2015-01-02 07:26:34 -05:00
|
|
|
#if UNIX
|
|
|
|
#include <signal.h>
|
2013-10-09 02:56:43 -04:00
|
|
|
#ifdef SIGWINCH
|
2015-01-02 07:26:34 -05:00
|
|
|
extern int chg_width, chg_height ;
|
|
|
|
|
2013-05-18 01:40:11 -04:00
|
|
|
void sizesignal( int signr) ;
|
2013-10-09 02:56:43 -04:00
|
|
|
#endif
|
2015-01-02 07:26:34 -05:00
|
|
|
#endif
|
2013-05-18 01:40:11 -04:00
|
|
|
|
|
|
|
#endif
|