mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
5943929956
The "topmiddle" and "bottommiddle" characters are defined incorrectly in many skins. This is because the correct definition wouldn't work with S-Lang build. The only place these characters are used is the diffviewer if either the +/- signs or the line numbers are shown, enabled by pressing S or L. The correct definition of these characters currently show up as 'v' and 'w' characters. The fix makes the diffviewer use tty_print_alt_char() as it is being used in other parts of the code, and hence it fixes the bug. It also fixes the skin definitions. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
49 lines
1.5 KiB
C
49 lines
1.5 KiB
C
|
|
#ifndef MC__TTY_SLANG_H
|
|
#define MC__TTY_SLANG_H
|
|
|
|
#ifdef HAVE_SLANG_SLANG_H
|
|
#include <slang/slang.h>
|
|
#else
|
|
#include <slang.h>
|
|
#endif /* HAVE_SLANG_SLANG_H */
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
#define KEY_F(x) (1000 + x)
|
|
|
|
#define ACS_VLINE SLSMG_VLINE_CHAR
|
|
#define ACS_HLINE SLSMG_HLINE_CHAR
|
|
#define ACS_LTEE SLSMG_LTEE_CHAR
|
|
#define ACS_RTEE SLSMG_RTEE_CHAR
|
|
#define ACS_TTEE SLSMG_UTEE_CHAR
|
|
#define ACS_BTEE SLSMG_DTEE_CHAR
|
|
#define ACS_ULCORNER SLSMG_ULCORN_CHAR
|
|
#define ACS_LLCORNER SLSMG_LLCORN_CHAR
|
|
#define ACS_URCORNER SLSMG_URCORN_CHAR
|
|
#define ACS_LRCORNER SLSMG_LRCORN_CHAR
|
|
#define ACS_PLUS SLSMG_PLUS_CHAR
|
|
|
|
#define COLS SLtt_Screen_Cols
|
|
#define LINES SLtt_Screen_Rows
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
enum
|
|
{
|
|
KEY_BACKSPACE = 400,
|
|
KEY_END, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT,
|
|
KEY_HOME, KEY_A1, KEY_C1, KEY_NPAGE, KEY_PPAGE, KEY_IC,
|
|
KEY_ENTER, KEY_DC, KEY_SCANCEL, KEY_BTAB
|
|
};
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
#endif /* MC_TTY_SLANG_H */
|