Ticket #3001: fix read and update of subshell prompt.

The bug was introduced in e35f044ccdd41922f925c99e6d50930ea8c7c47e.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(strip_ctrl_codes): type accuracy.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Cleanup: remove unused 'prompt_pos' variable.

(do_subshell_chdir): remove 'reset_prompt' argument because of removed
'prompt_pos'.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Merge branch '3001_subshell_prompt_fix'

* 3001_subshell_prompt_fix:
  Cleanup: remove unused 'prompt_pos' variable.
  (strip_ctrl_codes): type accuracy.
  Ticket #3001: fix read and update of subshell prompt.
Ticket #3011: mc under x11 problems with mouse or hang due gpm

mc may not detect the gpm mouse under X11 on many x terminals when running together with tmux or screen.

On some cases it can even hang.

It's a small patch to the gpm maintainer to improve its checking.
Seems there is a need also to a small change on mc.

Now everything is working perfectly.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Merge branch '3011_mc_gpm_and_xterm'

* 3011_mc_gpm_and_xterm:
  Ticket #3011: mc under x11 problems with mouse or hang due gpm
Ticket #3016: Segfault while entering into extfs archive

Current master (4.8.8-49-g6b64835) segfaults while entering into any extfs archive (zip, rar, etc).
Bad commit is 2640b21bb9700aa51a70f35f9e10732c82a7366f.

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Merge branch '3016_extfs_segfault'

* 3016_extfs_segfault:
  Ticket #3016: Segfault while entering into extfs archive
Direct commit in master: fix bug with a directory deletion

Signed-off-by: Slava Zanko <slavazanko@gmail.com>