tty_noecho() is used instead of noecho() function or macro.
tty_flush_input() is used instead of flushinp() function or macro.
tty_reset_screen() is used instead of endwin() function or macro.
tty_shutdown() is based on slang_shutdown(). Also implemented for
NCurses as wrapper for endwin().
tty_touch_screen() is used instead of touchwin() function or macro.
tty_set_normal_attrs() is used instead of standend() function or macro.
tty_set_alt_charset() is used instead of acs() and noacs()
functions or macros.
tty_baudrate() is used instead of baudrate() function or macro.
tty_keypad() is used instead of keypad() function or macro.
tty_nodelay() is used instead of nodelay() function or macro.
tty_reset_prog_mode() is used instead of reset_prog_mode() function or macro.
tty_reset_shell_mode() is used instead of reset_shell_mode()
function or macro.
tty_beep() is used instead of beep() function or macro.
src/tty/tty.h:
src/tty/tty-slang.c:
src/tty/tty-ncurses.c: new tty_fill_region() function.
src/dialog.c (widget_erase, dlg_erase): tty_fill_region() function
is applied to erase area of widget and dialog.
src/tty/key.h: cleanup. Changed returned type of is_abort_char()
function from int to gboolean.
src/tty/key.c: moved is_abort_char() function here...
src/tty/win.h: ...from here.
src/dialog.c (dialog_handle_key): is_abort_char() function is used.
Changed order of dialog key handling. Formatting.
Created some TTY functions instead of MC core global variables.
Moved init_layer() function from MC core to TTY layer.
Renamed slang_init() to init_slang().
Added required #include's in TTY layer.
Moved S-Lang color and attribute definitions from src/tty/tty-slang.h
to colors-slang.h.
Type accuracy.
Used gboolean instead of int for some dual-value variables.
Used static buffer for search result instead of dynamically
allocaled and freed memory.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
view.c:3237: format not a string literal and no
format arguments
utilunix.c:171, utilunix.c:173:
assignment discards qualifiers from pointer target type
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
* The sample of the containing text by file search;
* The sample of search in file mcview;
* The sample of search in mcedit (search operation);
* The substituting text in mceditor (replacement operation).
Author: Alexey Korop
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
Editor: search will continue from last search string if SHIFT+F7 hotkey pressed
at first time (without pressed F7 key).
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
add const MC_HISTORY_SHARED_SEARCH into history.h
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
The new "First hit" checkbox stops search in the file
if the first entry was found in that file
(thanks to Dominus (sergey.zaveruha at gmail dot com)).
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
src/find.c: code refactoring.
+ Unification of variable names.
+ Some static variables was moved out from functions to remember
find options between find sesions.
+ Do not keep i18n results if find dialog was destroyed.
+ Type accuracy.
+ Indentation.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Regression was introduced in lzma support
(a5ba278729)
All the heuristics stuff has been removed, only
LZMA utils 4.32.1 and later formats are supported.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
Fix issue: in function src/utillinux.c:my_system() added code for splitting
command line by spaces, use just first token as argument to function execlp()
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
If MC built with --without-subshell option is run with -d option,
the Ctrl-C key combination closes MC. Such behaviour was introduced
in 66332a4fb1 commit.
This commit actually restores the SIGINT signal handling which was
before 66332a4fb1 commit.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
* listbox_select_first has been introduced
* listbox_select_last has been reworked
Now when you press KEY_UP staying on the first
entry, you will get to the entry and vice versa
with KEY_DOWN staying at the last entry.
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>