When viewing two file lists, if user presses C-x i for info on
a panel's directory or file, the info pops up correctly in the
other panel. However, when the user closes the info screen, the
directory of the current panel is shown -- NOT the directory
which was being viewed before the info panel appeared.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
TestCase:
* Have a mc running where you have two different directories in each panel.
* Tab, so that you are in the other panel.
* Ctrl-O to go to subshell.
* You see two different prompts printed next to each other.
Fix issue:
In function src/main.c:do_update_prompt(): added '\r\n' before show prompt.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
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>