Merge branch 'HACK_tty'
* HACK_tty: (76 commits)
TTY: use tty_print_string() instead of printw().
Added check for version of S-Lang. Minimal version is 2.0
Modified the hintbar draw update.
Fixed dialog colors definition, setup and handling.
Revert "src/help.c: minor refactoring."
TTY: removed slang1 related code.
src/help.c: minor refactoring.
src/main.c: minor refactoring
TTY: moved SIGWINCH setup function to TTY layer.
Panel: fixed width of second column in brief listing mode.
Moved do_possible_cd() function from main.c to execute.c.
Screen: moved maybe_cd() function from main.c to screen.c.
Fix after rebase.
VFS: removed unnedeed includes of tty/tty.h header.
Moved panel update functions from main.c to screen.c.
TTY: moved alternate_plus_minus variable to TTY layer.
WListbox: some draw modifications.
WListbox: removed widget sizes duplication.
Listbox window: without button, listbox only.
Listbox window: apply main menu colors to the user menu.
...
Since midnight_dlg can be invisible during screen resize,
don't update the hintbar in SIGWING signal handling function.
Now the hintbar is updated during DLG_DRAW message handling
in mignight_dlg callback.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Code clean up.
Modification of tty_refresh for NCurses: call doupdate() after refresh()
every time.
tty_draw_box_slow() is not private function of TTY now.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Set color mode via tty_init_colors() function.
Made disable_colors and force_colors variables static in main.h.
Removed tty_disable_colors() function.
Some code optimization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
getch have been renamed to tty_lowlevel_getch.
mi_getch have been renamed to tty_getch.
get_event have been renamed to tty_get_event.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/main.c (repaint_screen): call tty_touch_screen() here.
src/execute.c (toggle_panels): fixed comment.
Call repaint_screen() instead of do_refresh().
src/cmd.c (do_view_cmd): small optimization.
(do_edit_at_line): likewise.
(swap_cmd): since tty_touch_screen() is called in repaint_screen()
now, don't call it here.
src/dialog.c (update cursor): don't check h->current->options twice.
(dlg_try_hotkey): don't send WIDHET_HOTKEY message to h->current widget
twice. Type accuracy. Small optimization.
(dlg_key_event): type accuracy. Small optimization.
The call of color initialization function (tty_init_colors()) is moved out
from init_curses() function. Thus we avoid the color reinitialization
in SIGWINCH hangling function.
src/screen.c:
(mini_info_separator): since mini_info_separator() is called after
paint_dir(), no need to call tty_set_normal_attrs().
(paint_frame): removed unused code.