| 1 |
/***************************************************************************
|
| 2 |
screen.h - description
|
| 3 |
-------------------
|
| 4 |
copyright : (C) 2004-2025 by Leaflet
|
| 5 |
email : leaflet@leafok.com
|
| 6 |
***************************************************************************/
|
| 7 |
|
| 8 |
/***************************************************************************
|
| 9 |
* *
|
| 10 |
* This program is free software; you can redistribute it and/or modify *
|
| 11 |
* it under the terms of the GNU General Public License as published by *
|
| 12 |
* the Free Software Foundation; either version 3 of the License, or *
|
| 13 |
* (at your option) any later version. *
|
| 14 |
* *
|
| 15 |
***************************************************************************/
|
| 16 |
|
| 17 |
#ifndef _SCREEN_H_
|
| 18 |
#define _SCREEN_H_
|
| 19 |
|
| 20 |
extern int screen_rows;
|
| 21 |
extern int screen_cols;
|
| 22 |
|
| 23 |
extern void moveto(int row, int col);
|
| 24 |
|
| 25 |
extern void clrtoeol();
|
| 26 |
|
| 27 |
extern void clrline(int line_begin, int line_end);
|
| 28 |
|
| 29 |
extern void clrtobot(int line_begin);
|
| 30 |
|
| 31 |
extern void clearscr();
|
| 32 |
|
| 33 |
extern int press_any_key();
|
| 34 |
|
| 35 |
extern void set_input_echo(int echo);
|
| 36 |
|
| 37 |
extern int str_input(char *buffer, int buffer_length, int echo_mode);
|
| 38 |
|
| 39 |
extern int get_data(int row, int col, char *prompt, char *buffer, int buffer_length, int echo_mode);
|
| 40 |
|
| 41 |
extern int display_file(const char *filename);
|
| 42 |
|
| 43 |
extern int display_file_ex(const char *filename, int begin_line, int wait);
|
| 44 |
|
| 45 |
extern int show_top(char *status);
|
| 46 |
|
| 47 |
extern int show_bottom(char *msg);
|
| 48 |
|
| 49 |
extern int show_active_board();
|
| 50 |
|
| 51 |
#endif //_SCREEN_H_
|