On Sun, 15 Nov 2009, Mindaugas Kavaliauskas wrote: Hi,
> Viktor Szakáts wrote: > >It's supposed to be, but in practice it's just can't work nearly > >that smoothly. F.e. even PgUp/PgDn died (or maybe it never worked) > >to navigate, I have to press Esc twice to exit a View/Edit window, > >Insert key doesn't work, the editor is quite limited in > >comparison. > PgUp/PgDn is OK here. Insert is also working (switches between > insert and overwrite mode). Yes, I need two ESC to exit. All keys works as expected. Double ESC is standard slang feature which can be used to emulate some exotic for some terminals key combinatios, i.e. ESC + 1 => F1. Anyhow in general is not MC but terminal configuration problem though MC has additional extensions which allows to "fix" some bugs even in really broken terminal descriptions. > >Executing cmds from cmdline always seems to put MC in a strange > >status where I usually have to quit it. > Me too. Sometimes I have a feeling it is because of Ctrl-O. If I > hide a panels and execute a command. It seems MC start a separate > shell, or something like that. It works perfectly for me. The behavior strictly depends on used terminal. If MC is working with pure Linux or FreeBSD console then the behavior is in practice the same as in Norton Commander in DOS. For these terminals MC can detect previous screen contents (of course if is correctly configured and system supports necessary extensions, i.e. vcsa devices in Linux. MC also detects XTERM terminals (using TERM envvar) and in such case it can also set/restore screen context for executed applications (CTRL+O) so if you are using some terminal emulators in XWindow then I suggest to use sth compatible with XTerm. Personally I prefer PTerm which is part of PuTTY for Linux and other *nixes which is really good terminal emulator and allows to easy use the same configuration for different OS-es but of course you can use anything you like though in such case please double check configuration switches. The main problem is the fact that we have at least 4 incompatible keyboard sequences in different XTerm implementations and they have to be synced between terminal emulator and program executed in such emulator (i.e. MC). It's also good to know that MC executed programs in pseudoterminal and it allocates only one pseudoterminal. User can switch between program executed in pseduoterminal and MC panels using CTRL+O what is not possible in DOS and often confuse DOS users. Hitting CTRL+O does not freeze bkg process so if you type new command then it will not be executed as long as the old one will not have finished. It's important to understand that shell is also such process. In Norton Commander the command line is part of NC code not a SHELL so works with completely different conditions. In MC if you hit CTRL+O then hit any key then once again CTRL+O to return to MC you will not be able to execute any new command because these "any key" activated SHELL and as long as you do not hit ENTER new commands executing is blocked. After ENTER new command (if not empty) is executed and just before accepting new input SHELL process is STOPped using STOP signal. MC uses very simple trick with PROMPT_COMMAND to reach this effect and be informed about the status of bkg SHELL. In summary it's very simple and clear as long as you know how it works and also very flexible so it's hard to returned to DOS or Windows and use Norton Commander or FAR Manager. > >Could be I'm just too stupid to "get" all the quirks of *nix CUI > >app behavior > Actually, I thought all these problems are only my problems. Please define precisely what is the exact problem and I'll try to help you. > I have an idea, that double ESC, not working Insert key (in you > case), o some random "~[23;" in command line is the problem of > terminal settings. I'm using PuTTY, but I do not know how to > configure it. I guess unix gurus has a quick solution to these > problems, but I've never tried to look for it. MC does not recognize all escape key sequences and unrecognized are simply not decoded i.e. SHIFT+F11 => 23;2~ > Since I see the same files both on Windows mapped drive and on Samba > share, I do not use MC to edit .prg, or .c code a lot. Of cause, > dos2unix call is sometimes annoying. I use only LF. best regards, Przemek _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour