1
1

* myslang.h: Partly switched to the new tty functions.

Этот коммит содержится в:
Roland Illig 2005-08-29 10:02:35 +00:00
родитель f85a7d8275
Коммит c3ba638d43
4 изменённых файлов: 4 добавлений и 15 удалений

Просмотреть файл

@ -7,6 +7,7 @@
* tty.h: Added the new function prototypes from tty.c and some
legacy definitions.
* view.c: Converted to use the new tty functions.
* myslang.h: Partly switched to the new tty functions.
2005-08-28 Roland Illig <roland.illig@gmx.de>

Просмотреть файл

@ -127,18 +127,4 @@ mc_addch (char c)
#define SLsmg_draw_double_box(r,c,dr,dc) SLsmg_draw_box ((r), (c), (dr), (dc))
#ifdef HAS_ACS_AS_PCCHARS
# define one_vline() addch(ACS_VLINE)
# define one_hline() addch(ACS_HLINE)
/* This is fast, but only useful on PC system as it doesn't use
Alt_Char_Pairs [] :( */
#else
/* This is slow, but works well :| */
# define one_vline() SLsmg_draw_object (SLsmg_get_row(), SLsmg_get_column(), slow_terminal ? ' ' : ACS_VLINE)
# define one_hline() SLsmg_draw_object (SLsmg_get_row(), SLsmg_get_column(), slow_terminal ? ' ' : ACS_HLINE)
#endif
void enable_interrupt_key (void);
void disable_interrupt_key (void);
#endif

Просмотреть файл

@ -108,7 +108,7 @@ tty_getyx(int *py, int *px)
*px = SLsmg_get_column();
*py = SLsmg_get_row();
#else
getyx(*py, *px);
getyx(stdscr, *py, *px);
#endif
}

Просмотреть файл

@ -43,6 +43,8 @@ extern void tty_print_hline(int top, int left, int length);
#define enable_interrupt_key() tty_enable_interrupt_key()
#define disable_interrupt_key() tty_disable_interrupt_key()
#define got_interrupt() tty_got_interrupt()
#define one_hline() tty_print_one_hline()
#define one_vline() tty_print_one_vline()
#ifndef HAVE_SLANG
# define acs()