* 2601_tty_init:
Removed mc_global.args structure.
Added -g, --oldmouse option to support of NORMAL/BUTTON_EVENT mouse type.
Removed global variable slow_tty
Removed global variable ugly_line_drawing
Moved xterm_flag global variable to mc_global.tty.xterm_flag
Move SIGWINCH handler initialization to tty_init()
Fix of mouse and ca capabilities check.
Refactoring of TTY layer shutdown.
Ticket #2601: incorrect TTY layer initialization.
Required for some terminals (screen/tmux) to force needed mouse type
(BUTTON_EVENT by default).
Normal tracking mode sends an escape sequence on both button press and release.
Mouse highlight tracking notifies a program of a button press, receives a range of
lines from the program, highlights the region covered by the mouse within that
range until button release, and then sends the program the release coordinates.
It is enabled by specifying parameter 1001 to DECSET.
Button-event tracking is essentially the same as normal tracking, but xterm also
reports button-motion events. Motion events are reported only if the mouse pointer
has moved to a different character cell. It is enabled by specifying parameter 1002 to DECSET.
On button press or release, xterm sends the same codes used by normal tracking mode.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
changed mc.1.in, added description of command line options -g, --oldmouse.
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Unification of tty_shutdown() function as for S-Lang as for NCurses.
Added do_exit_ca_mode() call to the NCurses-based tty_shutdown().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
The xterm_flag variable was initialized in setup_mc() but used
first time in init_key() and in tty_init() (in do_enter_ca_mode())
before setup_mc() call.
Now xterm initialized in early step of mc start up process and
xterm support and mouse are initialized in tty_init().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2580_file_size_column:
(size_trunc): added ability to show size in [G|g]bytes.
(size_trunc_len): process full range of uintmax_t type.
Ticket #2580: file size column is bogus for widths above 9.
The problem: extracting deep files from an archive containing long directory/file
names, filenames are cut off at 100 characters (length of the whole path
inside the archive).
In general, the TarVFS is scheduled for total reimplementation. But this
fix is useful for stable releases.
Thanks AVFS (avf.sf.net) for the code of this fix.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2586_mcedit_extended_keybindings:
Changed type of WEdit::extmod from integer to gboolean.
Extended shortcuts like 'ctrl-x x' are unavailable in editor.
Ticket #2586: broken extended keybindings in editor.
Extended shortcuts like 'ctrl-x ctrl-x' or 'ctrl-x alt-x' are available
in editor, but 'ctrl-x x' are not.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
ctrl-x shortcut is used in default keymap twice:
* as shotrcut for WordRight action (see 0908c8baea);
* as prefix for extended keybindings.
To fix the second issue, shortcut for editor.ExtendedKeyMap is
unassigned now because extended shortcuts are unused in editor in
default keymap.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 2591_editor_bottom_line_click:
Allow create WEdit window with any sizes and in any location.
Draw status line at the top of screen not at the top of editor widget.
Ticket #2591: mouse clicks ignored on the bottom line of editor.
After Find file -> Panelize files are shown with order of being found
and sorting mode of current panel is not applied.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
(mc_search__hex_translate_to_regex): don't use length of original string
after leading whitespace trim.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* 265_viewer_search_nroffed_twice:
Fixed finds twice in backward direction in nroff'ed text
fixed search result highlighting while search in backward direction
Fixed broken search results highlighting
Fixed broken search in nroffed text with one-byte charset encoding
Fixed search for first symbol in string.
Ticket #265: Search finds bold/underlined strings twice