large file

2014-11-14 Thread Helmut Hullen
Hallo,

I just tried to inspect a really large file (/var/spool/mail/User)  
with mc.

File size about 5 GByte, about 90 million lines.

I've searched for the first occurance of Scanning / - that's the  
beginning of lots of error messages.

mc (started with f3) doesn't find these lines with f7, but it  
shows them (thousands of them) at the end of the file.

grep -n -m1 '^Scanning /'

shows the first occurance at line 52,915,470

Running mc in f3 mode and using f5 for goto line: doesn't work (or  
shows another part of the file).

Ok - such large files may be very seldom ...

Viele Gruesse!
Helmut

___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: mc Digest, Vol 102, Issue 3

2012-10-15 Thread Helmut Hullen
Hallo, Holger,

Du meintest am 15.10.12 zum Thema Re: mc Digest, Vol 102, Issue 3:

 I do all my coding in mcedit, I usually have about 8 windows with mc
 opened and copying between them is important to me. I usually use
 shift-mouse method.

[top post and full quote reordered]

 To copy text from one mcedit instance to another, mark the text via
 [F3], copy it to a file (dflt: .mc/cedit/cooledit.clip) via
 [ctl]+[f], switch to the other mcedit and load the text via [F15]
 (maybe [shift]+[F3]). This will work for all instances of mcedit if
 run by the same user.

In newer versions of mc ctrl f writes per default into

~/.local/share/mc/mcedit/mcedit.clip

Viele Gruesse!
Helmut
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: mc Digest, Vol 102, Issue 3

2012-10-15 Thread Helmut Hullen
Hallo, Theodore,

Du meintest am 15.10.12 zum Thema Re: mc Digest, Vol 102, Issue 3:


 To copy text from one mcedit instance to another, mark the text via
 [F3], copy it to a file (dflt: .mc/cedit/cooledit.clip) via
 [ctl]+[f], switch to the other mcedit and load the text via [F15]
 (maybe [shift]+[F3]). This will work for all instances of mcedit if
 run by the same user.

 Ah, but suppose that one wants to copy out from something being
 edited with mcedit into some other place? For example, you are
 writing code and you would like to discuss some code snippet with a
 colleague. So you open pine and start an e-mail and want to copy into
 the e-mail. What then?

Then I copy the marked text with ctrl f to (p.e.) /tmp/my.txt and  
send this file as an e-mail attachment. That's a simple way.

Viele Gruesse!
Helmut
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Midnight Commander Guide

2012-09-26 Thread Helmut Hullen
Hallo, mailinglists,

Du meintest am 25.09.12 zum Thema Midnight Commander Guide:

 there are some key bindings which don't work here, maybe due to my
 terminal emulator (such as Alt-?). But for sure Ctrl-I doesn't
 redraw

 As someone pointed out, it's a backtick and Ctrl-l. I'll see if I can
 conveniently change the font where those key bindings are listed...

Just additional: sometimes (especially with some remote terminals) the  
function keys don't work. But (p.e.)

esc 3   instead of f3

seems still to work.


Viele Gruesse!
Helmut
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Midnight Commander Guide

2012-09-25 Thread Helmut Hullen
Hallo,

Du meintest am 23.09.12 zum Thema Midnight Commander Guide:

 I've written a guide to Midnight Commander in presentation format:

 http://nawaz.org/media/docs/mc/mc.pdf

 For those who really don't want to look at the PDF and are just
 curious about the content, I put the HTML version here:

 http://www.nawaz.org/media/docs/mc/mc.html

 It'll have a bunch of LaTeX formatting interspersed with the text,
 but much of it should be readable.

Fine!

Perhaps you may add

ctrl f(when editing a file)
shift f5  (when editing a file)

f15 (shift f5 or shift f3)  copy a name
f16 (shift f5 or shift f3)  rename a name

Viele Gruesse!
Helmut
___
mc mailing list
https://mail.gnome.org/mailman/listinfo/mc


Re: Again: Default size of filesize?

2010-11-03 Thread Helmut Hullen
Hallo, Alexander,

Du meintest am 03.11.10 zum Thema Again: Default size of filesize?:

 Someone did not understand my last question.
 Let me rephrase:
 When I use MC, how do I change the default numbers-of-characters that
 are being used for displaying the filesize-column?
 As standard, the filesize is displayed 7 characters wide (if I have
 counted it correctly).
 Where do I change the default length of the filesize column,
 preferably for both tabs?

If reading german is no problem for you:

 
http://arktur.de/FAQ/content/37/208/de/midnight-commander-zeigt-datum-falsch-an.html

may show the place not only for the timestamp column.

Viele Gruesse!
Helmut
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Editing with mc

2010-08-29 Thread Helmut Hullen
Hallo, Jobst,

Du meintest am 29.08.10 zum Thema Re: Editing with mc:

 1) I don't know a short cut key to get to the beginning or to the
 end of a file I'm editing, what am I missing?


 CTRL-Home will move you to the top of the file you are editing.
 CTRL-End ditto end of file.

 That's what I'm expecting, but the cursor moves only to the beginning
 or the end of the line!

Same unexpected behaviour here;
mc-20100509_git (Slackware-current)

Viele Gruesse!
Helmut
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Editing with mc

2010-08-29 Thread Helmut Hullen
Hallo, Keith,

ke...@karsites.net meinte am 29.08.10 in mc zum Thema Re: Editing with mc:

 1) I don't know a short cut key to get to the beginning or to
 the end of a file I'm editing, what am I missing?

 CTRL-Home will move you to the top of the file you are editing.
 CTRL-End ditto end of file.

 That's what I'm expecting, but the cursor moves only to the
 beginning or the end of the line!

[...]

echo $TERM

 tells xterm (running the machine via putty).

 Maybe that's the reason. When I go to the real keyboard (and not via
 putty) then echo $TERM tells linux, and Ctrl-end works as
 described. With old and new versions of mc.

 I use konsole terminal emulator part of KDE, under XFCE.

[...]

 Ctrl keys work OK on konsole.

Under putty most (nearly all) ctrl keys work. Only ctrl end and  
ctrl home seem to resist.

Viele Gruesse!
Helmut
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Editor save confirmation on hardlink file

2010-05-15 Thread Helmut Hullen
Hallo, Aleksey,

Du meintest am 15.05.10 zum Thema Editor save confirmation on hardlink file:

 I often edit some config files that are hardlinks, and mc always asks
 me File has hard-links. Detach before saving and by default answer
 Yes is selected. Usually I press Enter (because I think this is
 Save-Yes/No question) and then I need to recreate hardlink. This is
 very annoying.

 Is there a way to 1. disable this dialog at all and always keep
 hardlinks,

That's no good idea. On my system I have files where I have to answer  
yes and other files where I have to answer no.

And I like to be asked ...

Viele Gruesse!
Helmut
___
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


invoking '^' in Listing Mode

2010-02-16 Thread Helmut Hullen
Hallo alle miteinander,


  f9/left/Listing mode

leads to a menu Listing mode (that's ok).

It offers [^] in two places - if I touch them with the mouse a new  
menu history is shown.

But how can I go to this menu only with keys (and not with the mouse)?

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: jump to letter shortcut?

2009-10-29 Thread Helmut Hullen
Hallo, May,

Du meintest am 29.10.09 zum Thema jump to letter shortcut?:

 I tried to find it in manual but without luck- is there a shortcut to
 jump to letter in MC? e.g., I hame a zillion files in a directory
 and would like to jump to the first that starts with P?

Do you search ctrl s letter(s)?

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Question about auto-save setup

2009-10-03 Thread Helmut Hullen
Hallo, Juan,

Du meintest am 15.09.09 zum Thema Question about auto-save setup:

 In the 4.6.* days I used to disable the Auto save setup feature so
 that way every time I started mc it showed the current working
 directory on the left panel and a default location on the second one.
 I'm not sure if that was a feature or not, but I really miss it on
 the new version.

 The steps to reproduce this on 4.6.1 were:

 1- Configure mc the way I want it and disabling Auto save setup.
 2- Save the configuration.
 3- In the right panel go to /my/preferred/directory
 4- Position left panel.
 5- Save the configuration.

 Is there a way to do the same thing on the 4.7.* versions?

May be panels.ini is the bad guy who disturbs auto_save_setup=no.

~/.mc/ini leaves unchanged, but ~/.mc/panels.ini is changed on and  
on.

Perhaps I make panels.ini write-protected ...

1) go (left and right) into the desired standard directories,
2) go left
3) exit mc

4)lsattr +i ~/.mc/panels.ini

(lsattr -i unprotects)

It's a bad hack, I know.

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: wrong width of date/time column

2009-09-15 Thread Helmut Hullen
Hallo, Frank,

Du meintest am 15.09.09 zum Thema wrong width of date/time column:

 there is a problem showing file date and time in 'full file list'
 mode using LANG=de_DE.UTF-8.

 For dates  (today-180 days) the date format is 'dd. Mon ' and
 for dates  (today-180 days) the date format is 'dd. Mon hh.mi'.
 Which leads in a truncatated first digit of the day, as the column is
 only 12 characters width.

 Using LANG=C shows always the date in format 'Mmm dd hh:mi'.

 Is there an option for this behaviour?

  
http://arktur.de/FAQ/content/37/208/de/midnight-commander-zeigt-datum-falsch-an.html

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mc takes 30 sec to load

2009-07-19 Thread Helmut Hullen
Hallo, Michelle,

Du meintest am 30.01.08 zum Thema Re: mc takes 30 sec to load:

[...]

 Maybe it was on the Debian BTS or the debian-user list.

 DO not remeber exactly but it has something to do if you have used mc
 to access a FTP server or a NFSA share and then if you close it and
 open it the next time WITHOUT the same connection (e.g. you are
 OffLine) then the DNS lookup will fail after 30 seconds and mc
 continue normal...

Strange ... that bug must be new in the slackware packet mc-20090514.

mc-4.6.1_20070309 didn't search such a long time, nor did earlier  
versions.

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: Mc Digest, Vol 59, Issue 10

2009-07-19 Thread Helmut Hullen
Hallo, chris,

Du meintest am 01.04.09 zum Thema Re: Mc Digest, Vol 59, Issue 10:

 ... mark-a-block and save it !

[...]

 Menu says
 copy to File...  C-f
 'Save Block' would be better !!

 'Insert file...   F15
 how do you do F15

That depends! ...

Sometimes it's shift f5, sometimes it's shift f3.


Same game with F16 for renaming a file. Sometimes it's shift f6  
(ok), sometimes it's shift f4, and shift f6 offers deleting the file  
(F8).

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: copy/rename (edit mode)

2007-10-17 Thread Helmut Hullen
Hallo, Felix,

Du meintest am 17.10.07 zum Thema copy/rename (edit mode):

 For years I've seen that in X, Shift-F5  Shift-F6 actually do as
 expected. But on the virtual consoles, I've only seen that they do
 that when running *ubuntu (and maybe Debian too?). In Fedora,
 Mandriva  SUSE on virtual consoles, Shift-F3 is copy with edit
 destination name, and Shift-F4 is move with edit destination name.

It's strange, and I have not yet found any structure. Sometimes f11 and  
f12 are taken from the right keys, and f13 is represented by shift f1.  
And sometimes f13 is represented by shift f3.

It happens with some keyboards, it happens with some connections under  
Putty. All with the same distribution (Slackware 11.0), on several  
machines. No (simple) system, no (simple) structure.

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: viewing tar archive

2007-07-18 Thread Helmut Hullen
Hallo, Ethy,

Du (ethy.brito) meintest am 18.07.07:

 How can I start mc to show a tar file contents like a directory
 view??

Have you tried the return key?
And f3 should show tar -l.

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


mc shows parts of the old screen after f3

2007-07-05 Thread Helmut Hullen
Hallo, mc,

I'm using an elder mc (4.5.50) in an install environment (old glibc  
etc.).

When I look with f3 into a file, some parts of the directories screen  
are still shown (lines, hints etc., a bit broken).

With ctrl-l (repaint) I get a fine screen, but that's a silly way (and  
the full installation of mc doesn't need this key).

Is there any key or other directive which tells mc not to show parts of  
the old screen?

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mc shows parts of the old screen after f3

2007-07-05 Thread Helmut Hullen
Hallo,

ich meinte am 05.07.07 zum Thema mc shows parts of the old screen after f3:

 I'm using an elder mc (4.5.50) in an install environment (old glibc
 etc.).

 When I look with f3 into a file, some parts of the directories screen
 are still shown (lines, hints etc., a bit broken).

Now I've found the bug - magic didn't fit to file. Strange ...

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mcedit and mail

2007-06-10 Thread Helmut Hullen
Hallo, Pablo,

Du (pablo) meintest am 10.06.07:

 Is mail menu usable? How? A config to do before?

 you need the programme /usr/bin/mail - just install mailx or
 mailutils.

Sorry - doesn't work.
The program /usr/bin/mail exists and works fine, but mail under  
mcedit doesn't work.

 further you'll want your mail to be delivered, thus you might need
 to install an MTA (esmtp, exim, postfix, sendmail etc.)...

sendmail works - I see much root mail (and other mail).

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


Re: mc doesn't like underscores in dir name

2007-05-31 Thread Helmut Hullen
Hallo, Pavel,

Du meintest am 31.05.07 zum Thema Re: mc doesn't like underscores in dir name:

 the problem is caused by bad substitution of directory names by
 codes in octal form, which is fixed by:

 http://cvs.savannah.gnu.org/viewvc/mc/mc/src/subshell.c?r1=1.92r2=1
 .93

 The correct patch is:

 http://cvs.savannah.gnu.org/viewvc/mc/mc/src/subshell.c?r1=1.95r2=1.
 96diff_format=u

I have just changed the slackware packet

mc-4.6.1_20070309-i486-2.tgz

It's in the Slackware-current branch but it fits for Slackware-11.0 too.
Many thanks!

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


mc doesn't like underscores in dir name

2007-05-30 Thread Helmut Hullen
Hallo, mc,

I'm working with mc 4.6.1 on some slackware installations (10.x and  
11.0).

As described in [EMAIL PROTECTED]  
(de.comp.os.unix.linux.misc) I've problems with dir names and file names  
containing underscores under slackware 11.0.

mkdir -p /tmp/s_t

starting mc, going into /tmp - that's ok
going onto s_t and pressing enter shows a warning, but mc goes into  
the directory.

touch a_b

and mc jumps one dir higher (/tmp) and makes this file in this  
directory.
Editing a_b: no problem.
Deleting /tmp/s_t: no problem.

The same steps under slackware 10.x: no problem.

Another guy reports the same problem with openSUSE 10.2 x86_64 and i586  
with mc-4.6.1-63.5.

How can I get a better working mc?

(please excuse my gerlish!)

Viele Gruesse!
Helmut
___
Mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


underscores (strace output)

2007-05-30 Thread Helmut Hullen
Hallo, mc,

here ist the strace output (sorry for the long log):

chdir(/tmp/s_t)   = 0
getcwd(/tmp/s_t, 4096)= 9
stat64(/tmp/s_t, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64(/tmp/s_t, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
write(4,  cd , 4) = 4
write(4, \`echo -e \'\\057tmp\\057s\\137t\'`\, 31) = 31
write(4, \n, 1)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4,  , 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, c, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, d, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4,  , 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \, 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, `, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, e, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, c, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, h, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, o, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4,  , 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, -, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, e, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4,  , 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \', 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \\, 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 0, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 5, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 7, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, t, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, m, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, p, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \\, 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 0, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 5, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 7, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, s, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \\, 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 1, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 3, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, 7, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, t, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \', 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, `, 100)   = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \, 100)  = 1
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])
read(4, \r\n, 100)= 2
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [4])

-- start of error? 

read(4, bash: cd: /tmp/s\\137t: Datei ode..., 100) = 62
select(7, [4 6], NULL, NULL, NULL)  = 1 (in [6])
read(6, /tmp\n, 4097) = 5
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigsuspend([])   = ? ERESTARTNOHAND (To be restarted)
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(19708, [{WIFSTOPPED(s)  WSTOPSIG(s) == SIGSTOP}], WNOHANG|WSTOPPED) = 
19708
waitpid(19707, 0xbfd34380, WNOHANG|WSTOPPED) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [CHLD])
ioctl(4, TCFLSH, 0x1)   = 0
kill(19708, SIGCONT)= 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
waitpid(19708, 0xbfd342f0, WNOHANG|WSTOPPED) = 0
waitpid(19707, 0xbfd342f0, WNOHANG|WSTOPPED) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
write(2, Warnung: Kann nicht in /tmp/s_t ..., 42) = 42

--- Warning --


open(/tmp/s_t, O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
fstat64(5,