Commit Graph

245 Commits

Author SHA1 Message Date
Pavel Roskin
af687f67c5 * main.c (probably_finish_program): Eliminate.
(handle_args): Use exit code 1 only for errors, 0 for legitimate
options such as "--help".
2002-10-31 06:52:33 +00:00
Pavel Roskin
a04dd8754e * main.c: Option -P takes an argument (output filename) now.
(main): Output the last directory to the specified file.  Don't
output "." is this information is unavailable.
2002-10-31 04:31:52 +00:00
Andrew V. Samoilov
8d3ff7384d * main.c (show_change_notice): Make local variable in main().
(compatibility_move_mc_files): Merge with
do_compatibility_move() and return 1 if moving was done, 0
otherwise.  Move ~/.mc.tree to ~/.mc/Tree.
2002-10-23 09:01:08 +00:00
Pavel Roskin
c39e68b75c * main.c (print_mc_usage): Remove unnecessary newline. 2002-10-21 23:34:02 +00:00
Pavel Roskin
1c099a21ec * main.c (print_mc_usage): Partly revert previous patch -
poptPrintHelp() has side effects and should not be called
inside fprintf(), which can be a macro.
2002-10-21 23:28:33 +00:00
Pavel Roskin
f11fe69fe9 * main.c (print_mc_usage): Use poptSetOtherOptionHelp()
From Andrew V. Samoilov <sav@bcs.zp.ua>
2002-10-21 23:21:24 +00:00
Pavel Roskin
d3f0a2f61b Remove spaces around "Error" and "Warning" together with their translations.
Also remove spaces from "Quit" and "Search", but leave alone the
translations, that already have them without spaces.
2002-10-21 04:13:49 +00:00
Andrew V. Samoilov
2f4a67be36 Remove unused enum.
(do_compatibility_move): Rename ~/.mc.ext to ~/.mc/bindings.
2002-10-17 10:32:36 +00:00
Pavel Roskin
f367374054 Add FIXME. 2002-10-13 23:12:06 +00:00
Pavel Roskin
01d8a125c8 * main.c (print_color_usage): Update list of keywords for file
types.  Add a notice for translators.
2002-10-13 22:57:52 +00:00
Andrew V. Samoilov
ca70ee44c5 * popt.h: Adjust poptHelpOptions[] declaration.
* popthelp.c: Replace POPT_ with _ for visible strings.
(singleOptionHelp): Eliminate format array.
(poptHelpOptions): Make const.
(poptPrintHelp): Return width of left column.

* main.c (print_mc_usage): Use width from poptPrintHelp() for "+number".
2002-10-09 15:27:01 +00:00
Pavel Roskin
da7e82d253 Global removal of RCS Id: flags. 2002-09-26 23:13:45 +00:00
Pavel Roskin
c785d4195b * global.h: Move fcntl.h inclusion here. Define O_BINARY.
* mountlist.c: Remove more includes already handled in global.h.
2002-09-23 06:43:22 +00:00
Pavel Roskin
4085591bd0 * main.c (process_args): Print only data directory and nothing
else for the "-f" argument.
(argument_table): Rename --libdir to --datadir, adjust its
description.
2002-09-22 01:59:37 +00:00
Pavel Roskin
6979a9fddf * Makefile.am: Rename LIBDIR to DATADIR, since it refers to
pkgdatadir now.  Install cons.saver to pkglibdir, pass it to the
compiler as LIBDIR.
* cons.handler.c (handle_console): Use LIBDIR.
* main.c (OS_Setup): Use DATADIR instead of LIBDIR.  Rename
MC_LIBDIR to MC_DATADIR.
2002-09-22 00:13:32 +00:00
Pavel Roskin
b295faf096 * command.c: (command_insert): New function - insert quoted
text into the command line.
* main.c: Use command_insert() instead of stuff().  This ensures
that the names in the command line are quoted.
Reported by Arpad Biro <biro_arpad@yahoo.com>
2002-09-20 19:59:28 +00:00
Pavel Roskin
f6f02a0295 * command.c: Make `command' a standard WInput widget, just
change its callback.  Eliminate input_w().  Adjust all
dependencies.
* widget.c (input_callback): Remove static attribute.
2002-09-20 19:36:55 +00:00
Pavel Roskin
e6003e328f Even better "+number" help - don't depend on the length of _("+number") 2002-09-19 06:52:41 +00:00
Pavel Roskin
dfdb879eb1 * main.c (argument_table): Improve help for "+number" - it has
to be re-translated anyway.
2002-09-19 06:43:06 +00:00
Pavel Roskin
d12a6c2eb6 * main.c (argument_table): Add missing descriptions. 2002-09-19 06:29:25 +00:00
Pavel Roskin
7d2f7d94dd * main.c [NATIVE_WIN32]: Remove -S option, it's useless. 2002-09-19 06:16:42 +00:00
Pavel Roskin
331a4c7bab * main.c (print_mc_usage): Use poptPrintHelp() instead of
manually formatted help text.  Adjust callers to pass popt
context.
2002-09-19 06:03:24 +00:00
Pavel Roskin
c3e1e0e19d * cmd.c (other_symlink_cmd): Remove, this function is
undocumented and poorly implemented.
* main.c: Remove call to other_symlink_cmd() on C-x C-l.
2002-09-18 22:30:48 +00:00
Pavel Roskin
eeea579c19 * main.c: Remove advanced_chfns variable. Adjust all
dependencies.
2002-09-13 16:33:18 +00:00
Andrew V. Samoilov
40c35f02c5 * main.c (process_args) [WITH_SMBFS]: Call smbfs_set_debugf()
for "-l" option.
2002-09-13 10:04:21 +00:00
Pavel Roskin
05af9f14c7 * main.c: Fully remove obsolete "-m" option. 2002-09-13 06:42:03 +00:00
Andrew V. Samoilov
b7cae0c6e2 * main.c [WITH_SMBFS]: Include ../vfs/smbfs.h.
(argument_table) [WITH_SMBFS]: Add -D, --debuglevel option for
smbfs debug level.
(process_args) [WITH_SMBFS]: Handle new -D option.
(print_mc_usage) [WITH_SMBFS]: Describe -D, --debuglevel option.
2002-09-11 10:05:24 +00:00
Pavel Roskin
485b40ac2a * utilunix.c (mc_tmpdir): New function that returns temporary
directory for mc.
* util.c (mc_mkstemps): Use mc_tmpdir().
* main.c (main): Call mc_tmpdir().
2002-09-11 04:58:24 +00:00
Pavel Roskin
ec1b1f9614 Globally replace OS2_NT and _OS_NT with WIN32_NATIVE. 2002-09-10 22:04:11 +00:00
Pavel Roskin
9af6bedb04 * main.c (load_prompt): Don't shorten the prompt if COLS is 8 or
less.
2002-09-10 21:18:11 +00:00
Pavel Roskin
ef9a43a7a3 * tty.h [!HAVE_SLANG]: Remove all slang_* definitions.
* main.c (main) [!HAVE_SLANG]: Don't call slang_shutdown().
* myslang.h: Remove slang_done_screen(), it's unused.
2002-09-08 16:22:54 +00:00
Pavel Roskin
5d2757fb8d * key.c (get_event): Check gpm_fd only if gpm is actually used.
* layout.c (done_screen): Move disable_mouse() call ...
* main.c (done_mc): ... here.
2002-09-08 15:50:02 +00:00
Pavel Roskin
87da6b9f42 * main.c (load_hint): Don't hardcode copyright years. Use a
translated message.
2002-09-05 16:36:43 +00:00
Pavel Roskin
01e2780615 * main.c (midnight_callback): Avoid calling the default DLG_DRAW
handler.  From David Martin <dmartina@excite.com>
2002-09-05 06:59:17 +00:00
Pavel Roskin
206fdf6f1d * global.h: Eliminate xgetch, update all dependencies. 2002-09-03 22:23:27 +00:00
Pavel Roskin
556f733f12 * boxes.c: Fix remaining old-style calls to create_dlg().
* complete.c: Likewise.
* main.c: Likewise.
* view.c: Likewise.
2002-09-03 20:19:22 +00:00
Pavel Roskin
66f37c0af4 * main.c (do_nc): Make midnight_colors[] local to do_nc().
Initialize normal color - it's used by the tree.
* boxes.c (tree_box): Use standard dialog_colors.
* tree.c: Use NORMALC for normal entries.
2002-08-31 05:50:06 +00:00
Pavel Roskin
2adae11aa4 * main.c (init_xterm_support): Force xterm-style screen saving
and no mouse on "cygwin" terminal.
2002-08-26 15:26:38 +00:00
Pavel Roskin
8aa61fffa3 * dlg.h (struct Dlg_head): Fold fields "raw" and "has_menubar"
into one field "flags".  Adjust all dependencies.  Add new flag
DLG_COMPACT.
* wtools.c (dialog_repaint): Draw frame without spaces if
DLG_COMPACT flag is set.
* complete.c (complete_engine): Set DLG_COMPACT.
(query_callback): Use common_dialog_repaint().
2002-08-22 15:34:25 +00:00
Pavel Roskin
608d74abda * menu.c (create_menu): Get help node as an argument.
* main.c: Use new create_menu() interface.
2002-08-20 21:30:06 +00:00
Pavel Roskin
2c8f2419e5 * main.c (handle_args): Set POPT_CONTEXT_NO_EXEC flag for
poptGetContext().
* popt.c: Call abort() in execCommand() - we should not execute
anything here.
2002-08-20 00:01:33 +00:00
Pavel Roskin
342b4bbd0f * cmd.c (fishlink_cmd): Implement user interface for FiSH.
* main.c: Add it to the menu.
2002-08-19 06:06:09 +00:00
Pavel Roskin
0d89dec899 * main.c: Remove extremely unsafe and poorly designed support
for /tmp/mc.$PID.control file.
* util.c (my_putenv): Remove, it's unused now.
2002-08-18 22:31:49 +00:00
Pavel Roskin
69f67049fa * layout.c (init_curses) [!HAVE_SLANG]: Add support for
stickchars - fill acs_map[] with ASCII approximations.
* main.c [!HAVE_SLANG]: Enable --stickchars (-a) for ncurses.
2002-08-18 16:34:29 +00:00
Pavel Roskin
f0dbdeb72e * subshell.c (read_subshell_prompt): Remove argument "how", it's
never set to VISIBLY.  Adjust all dependencies.  Eliminate hack
with "clear_now" - it causes invalid memory access and hides the
real problem.
* util.c (strip_ctrl_codes): Fix possible invalid memory access
if the escape sequence ends unexpectedly.
2002-08-15 06:53:44 +00:00
Pavel Roskin
6d2f235053 * main.c (do_execute) [!HAVE_SUBSHELL_SUPPORT]: Compile fix. 2002-08-15 01:36:09 +00:00
Pavel Roskin
b7cdfa9c93 * main.c (sigchld_handler_no_subshell) [linux]: SIGTSTP is
always defined on Linux.
* subshell.c (sigchld_handler): No need to use SIGTSTP
explicitly when we really care about SIGCONT.
2002-08-09 23:36:06 +00:00
Pavel Roskin
e2a37d3809 * charsets.c: Unconditionally enable finalization code that was
only used with HAVE_MAD.
* color.c: Likewise.
* color.h: Likewise.
* key.c: Likewise.
* main.c: Likewise.
* slint.c: Likewise.
* subshell.c (exit_subshell): Free subshell_prompt.
2002-08-01 20:31:52 +00:00
Pavel Roskin
105cb58726 * mad.c: Remove.
* mad.h: Likewise.
* Makefile.am (SRCS): Remove mad.c and mad.h.
* cmd.c: Remove references to MAD.
* main.c: Likewise.
* dlg.c: Use inline, not INLINE.
* hotlist.c: Likewise.
* menu.c: Likewise.
* global.h: Don't include mad.h.
2002-08-01 19:40:43 +00:00
Pavel Roskin
17ceeead44 * main.c (do_execute): Add newline after "Press any key to
continue".
2002-07-29 19:30:41 +00:00