Andrew Borodin
c4dc0b22b0
Set dialogs colors is moved from TTY layer to MC core.
2009-08-12 21:23:12 +04:00
Andrew Borodin
b0ce68a79b
TTY: don't check use_colors twice.
...
start_color() is NCurses function. Don't call it in S-Lang TTY layer. Define
is removed.
2009-08-12 21:23:12 +04:00
Andrew Borodin
1b1f082123
Restored fix of default terminal colors usage for NCurses.
2009-08-12 21:23:12 +04:00
Andrew Borodin
fe1adb5f27
tty_print_char() function is used instead of addch() one.
...
Modified tty_print_char() function for S-Lang library to use it
instead of addch().
2009-08-12 21:23:12 +04:00
Andrew Borodin
26631548d8
Fixed TTY sublayer after rebase to current master.
2009-08-12 21:23:12 +04:00
Andrew Borodin
f1670d735e
Fixed commnets about #include's.
2009-08-12 21:23:12 +04:00
Andrew Borodin
e68c67554b
TTY: created tty_fill_region() function.
...
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.
2009-08-12 21:23:12 +04:00
Andrew Borodin
f1d526d84d
Keys handling.
...
src/tty/key.c (keyboard_key_timeout): make static.
src/tty/key.h: removed unsed irix_fn_keys variable.
Moved declaration of mou_auto_repeat variable here...
src/main.h: ...from here.
2009-08-12 21:23:12 +04:00
Andrew Borodin
5a5a8bd3c0
Reorganization of key and window management functions.
2009-08-12 21:23:12 +04:00
Andrew Borodin
d91122a172
Reorganization of TTY raw/noraw mode setting functions.
2009-08-12 21:23:12 +04:00
Andrew Borodin
fb51cb8241
Use TTY function names instead of #define's.
2009-08-12 21:23:12 +04:00
Andrew Borodin
3720285612
Reorganization of is_abort_char() function.
...
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.
2009-08-12 21:23:12 +04:00
Andrew Borodin
c12ddff69b
Reorganization of TTY color functions.
2009-08-12 21:23:12 +04:00
Andrew Borodin
bcc6a40486
Reorganization of TTY initalization and line drawing.
...
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.
2009-08-12 21:23:12 +04:00
Andrew Borodin
7a75f8723d
Replaced addstr() call to tty_print_string() one.
2009-08-12 21:23:12 +04:00
Andrew Borodin
069aab9ebc
Renamed mc_refresh() to tty_refresh().
2009-08-12 21:22:17 +04:00
Andrew Borodin
7ed7c83e8d
Replaced addstr(str_term_form(...)) to tty_print_string(...).
2009-08-12 21:22:17 +04:00
Andrew Borodin
62cdac4d1f
The tty_draw_box() function has been created and used.
2009-08-12 21:19:20 +04:00
Andrew Borodin
ebbf6fbcdc
Replaced functions.
...
attrset() -> tty_setcolor()
move() -> tty_gotoyx()
getyx() -> tty_getyx()
2009-08-12 21:19:20 +04:00
Andrew Borodin
ea0cb38b9e
Initial step to split NCurses- and SLang-based TTY layers.
2009-08-12 21:19:20 +04:00
Andrew Borodin
389e5bf613
Moved rxvt.c, win.[ch] and x11con.[ch] from src to src/tty directory.
...
Fixed includes.
Fixed library order in src/Makefile.am due to --as-needed linking option.
2009-08-12 21:19:20 +04:00
Andrew Borodin
f3730bdc41
Initial step to move TTY layer of MC to separate library.
2009-08-12 21:19:20 +04:00
Slava Zanko
3eeeb35e53
Merge branch '1496_search_backwards_broken'
...
* 1496_search_backwards_broken:
Changed types in structure 'mc_search_struct' from 'gsize' to 'otff_t'
Ticket #1496 (Search backwards is broken)
2009-08-12 15:04:55 +03:00
Slava Zanko
0dc26a14d4
Changed types in structure 'mc_search_struct' from 'gsize' to 'otff_t'
...
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 15:04:37 +03:00
Daniel Borca
2a586710b7
Ticket #1496 (Search backwards is broken)
...
fix: file edit/editcmd.c backward search is broken
2009-08-12 15:04:37 +03:00
Slava Zanko
646b11a7ce
Merge branch '1520_Uninitialized_event_x'
...
* 1520_Uninitialized_event_x:
Ticket #1520 : Uninitialized event.x in find.c#check_find_events()
2009-08-12 15:02:01 +03:00
dborca
02132ecaea
Ticket #1520 : Uninitialized event.x in find.c#check_find_events()
...
Fixed uninitialised member of structure.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 15:01:51 +03:00
Slava Zanko
1104a6db38
Merge branch '1521_ctrl_z_does_not_work'
...
* 1521_ctrl_z_does_not_work:
Ticket #1521 : ctrl-z (aka suspend) does not work
2009-08-12 14:58:50 +03:00
dborca
688d80cdb1
Ticket #1521 : ctrl-z (aka suspend) does not work
...
Fix issue:
execute.c is missing #include <signal.h> and therefore #ifdef SIGTSTP fails miserably.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-12 14:37:22 +03:00
Sergei Trofimovich
5f1ad860b7
Ticket #1527 : heap corruption detected on large filenames
...
Fix bug, introduced in 27fbf91c28
commit. Really allocate 'dirent + NAME_MAX + 1', instead of
sizeof(void*) + NAME_MAX + 1.
Signed-off-by: Sergei Trofimovich <st@anti-virus.by>
2009-08-12 12:37:32 +03:00
Andrew Borodin
3b37c6cd4e
Merge branch '330_show_menu_screen_resize'
...
* 330_show_menu_screen_resize:
Ticket #330 : show dropped down menu is screen has been resized.
2009-08-10 15:31:08 +04:00
Andrew Borodin
8a1c364ff0
Ticket #330 : show dropped down menu is screen has been resized.
...
Now works for both values of "menuBar visible" option.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-10 15:30:29 +04:00
Patrick Winnertz
c313396a45
Ticket #1501
...
* place every operation into a if clause, so that every failure of the
operations is reported.
* Place chown/chmod into if conditions to check if the commands where
successfull or not on fish.
* Added one more argument to the #CHOWN line
Signed-off-by: Patrick Winnertz <winnie@debian.org>
2009-08-10 07:10:42 +00:00
Sergei Trofimovich
65771004c4
Ticket #82 (savannah: "save as" retains mode) patch by imdagger
...
Consider following scenario:
$ touch /tmp/foo_file
$ chmod 0444 /tmp/foo_file # readonly for owner
$ mcedit /tmp/foo_file
> 1. edit
> 2. try to save, fail. choose another name: /tmp/foo_file2
> 3. edit
> 4. try to save, fail again!
This patch adds owner write permissions for files, created in
step 2.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-09 19:24:42 +03:00
Stan. S. Krupoderov
96c0dc08d8
Ticket #1485 : iso9660 extfs does not handle certain isos
...
extfs/iso9660.in: add suport UCS l1, and fix ageinst new isoinfo
Original author: dborca
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-09 16:27:27 +04:00
Daniel Borca
556089fc9f
Ticket #1478 (kill word)
...
add: "kill word" (M-d) shortcut in editor;
2009-08-08 12:48:24 +00:00
Andrew Borodin
7a98a302be
Merge branch '1457_findfile_first_entry_fix'
...
* 1457_findfile_first_entry_fix:
Find file: fixed missing runtime i18n of "First Hit" label.
Find file: fixed search for first hit.
Find file: refactoring.
2009-08-08 15:51:51 +04:00
Andrew Borodin
54b6991a9c
Find file: fixed missing runtime i18n of "First Hit" label.
...
Thanks to David Martin <dmartina at excite dot com>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-08 15:51:27 +04:00
Andrew Borodin
ef699b94be
Find file: fixed search for first hit.
...
Stop search file content if first hit found.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-08 15:51:27 +04:00
Andrew Borodin
fbd042889a
Find file: refactoring.
...
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>
2009-08-08 15:51:27 +04:00
Igor Zhuravlov
5cddf032f0
Ticket #1492 : j.syntax
...
j.syntax: add syntax file
Syntax: enable j syntax
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-08 15:37:54 +04:00
Daniel Borca
670d11fc73
Ticket #1499 (mcview: Search backwards is broken)
...
fix: src/view.c backward searck is broken
Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
2009-08-08 08:42:50 +00:00
Sergei Trofimovich
b56f55fc83
(Ticket #1476 ) Revert * lib/mc.ext.in: Tar is missing a - as argument fix
...
This reverts commit f021c090f9
.
Signed-off-by: Sergei Trofimovich <slyfox@inbox.ru>
2009-08-07 21:45:26 +03:00
Slava Zanko
5518e7ad58
Merge branch '414_shell_patterns_in_copy_dialog'
...
* 414_shell_patterns_in_copy_dialog:
Ticket #414 (shell patterns in copy dialog)
2009-08-07 16:07:42 +03:00
Denys Vlasenko
4586834cb9
Ticket #414 (shell patterns in copy dialog)
...
Handle asterisks into replace template string.
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2009-08-07 14:47:26 +03:00
Andrew Borodin
11cc7a7009
Ticket 1461: missing line feeds in Info panel.
...
Thanks to Denis Briand.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2009-08-07 11:38:28 +04:00
Denis Briand
e03b8504f5
Ticket #1469 : strace.syntax
...
strace.syntax: add file to support strace syntax
Syntax, Makefile.am: enable strace.syntax
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 11:18:21 +04:00
Denis Briand
d57c955cea
Ticket #1468 : html.syntax
...
html.syntax: update html syntax
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 11:15:51 +04:00
Denis Briand
d38ce0dd27
Ticket #1471 : mail.syntax
...
syntax, mail.syntax: add new headers support, change some colors
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-07 09:58:38 +04:00
Yury V. Zaytsev
324c7cecb6
Ticket #1438 : Update RPM SPEC file to fix rpmlint warnings and compilation on EL*
...
mc.spec.in:
- Fixed EL4 (and supposedly EL3) builds
- Fixed some of rpmlint warnings
Author: Yury V. Zaytsev
Signed-off-by: Stan. S. Krupoderov <pashelper@gmail.com>
2009-08-06 21:04:53 +04:00