Midnight Commander, versions 4.8.18 to 4.8.22

Filemanagers, partitioning tools, etc.
Message
Author
foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

skins

#16 Post by foxpup »

This is getting interesting!!!
Yes it is! Looks good.

I do not have time to try myself at the moment, just peeping from time to time.
I come back to this when I do have time.
there are reports that the look of mc changes quite a bit if one can
activate 256 colors in the terminal program. And then of course one
can use 256 colors themes.
I already noticed I could not use these skins. Any idea how to do this?

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#17 Post by musher0 »

Hello all.

The pet containing the mc executable I made available yesterday
(Valentine's Day 2017) had the /etc/mc directory at the wrong place.
Sorry about that. The wrong place in the hierarchy of directories prevented
the sfs.ini from loading and had an impact on the colors of some skins.

I just made available a new, correctly structured, pet. If you downloaded
the pet of the executable yesterday (Valentine's Day 2017) please erase it
and download the new one from the initial (1st) post of this thread.

Thanks.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#18 Post by foxpup »

hey musher0, must be spring, these birds in your head and all...
Today is a wonderfull 15°C, allmost springlike day here, on the other side of the Atlantic. :)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#19 Post by musher0 »

Hello foxpup and all.

About 256 support, I just found this. which appears to come from a
serious programmer.

He says that urxvt compiled OOTB supports only 88 colors. One has to apply
a 256 color patch to the code and recompile it to get the full 256 colors.

Unfortunately, I do not know how to patch code.

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#20 Post by foxpup »

Unfortunately, I do not know how to patch code.
Me neither.
musher0, I would expect you had to do some patching when building your Puduan. But I do not know what it involves to build a puppy.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#21 Post by musher0 »

foxpup wrote:
Unfortunately, I do not know how to patch code.
Me neither.
musher0, I would expect you had to do some patching when building your Puduan. But I do not know what it involves to build a puppy.
Hi foxpup.

The answer to that question is yes and no.

Arranging programs, scripts and libraries into a big ensemble such as a
Puppy distro can be called "patching", I suppose, but not in the sense of
patching actual code.

In the case of urxvt, I would have to know the C language to make sure
I'm not breaking anything, and I don't. Since life only lasts a certain time,
one has to choose his battles! I'm beginning to know my way around the
(b)ash interpreter language, but C is a a specialty in itself.

That said, if we're patient enough and we search hard enough, I'm sure
we'll find a ready-made 256 colors urxvy somewhere!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#22 Post by musher0 »

foxpup wrote:hey musher0, must be spring, these birds in your head and all...
Today is a wonderfull 15°C, allmost springlike day here, on the other side of the Atlantic. :)
Nah, not Spring, not yet! Not here anyway!

I gather you'd be located in Italy or Spain where Spring starts early?

I probably have what we call here "cabin fever". We got hit yesterday
with a second big snow storm in a week! So people here at this time are
only leaving the house for absolute necessities, such as work or doing
the groceries.

But even 40 centimeters of snow will eventually melt!

BFN.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#23 Post by tlchost »

could ypu produce an sfs version that will play in 32 bit Tahr 6.0.6?
Thanks

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#24 Post by musher0 »

tlchost wrote:could ypu produce an sfs version that will play in 32 bit Tahr 6.0.6?
Thanks
Hi tlchost.

There you go! :)

https://my.pcloud.com/publink/show?code ... Vo0SzIhnI7

This sfs was created and tested on TahrPup-6.0.6. Please see screenshot.

Enjoy!
Attachments
mc4818-on-tahrpup606.jpg
(79.94 KiB) Downloaded 559 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#25 Post by musher0 »

Hello again all.

I tried to use the default file associations provided with mc, but they don't
work OOTB.

The problem was that in the mc config files, the association scripts were
listed as being in /usr/bin/libexec/mc, whereas in Puppy they should be
in /usr/libexec/mc.

Once the directory path is edited, the mc file association scripts use
Puppy's regular xdg-open main script for this kind of operations. Which
means we're back in the race, the files are associated with the proper
program, jpg's are shown in Puppy's default image viewer, and so on.

To get these file associations to work, please install the attached pet
archive, which provides the corrective. (If you ever need it, the original
mc.ext file has been renamed to /root/.config/mc/mc.ext.orig.)

Enjoy!

~~~~~~~~~~~
P.S. -- I'll continue testing, but if on your side you find weird bugs like this
with this compilation of mc, I'd be grateful if you report them below. By
co-operating, we'll all benefit. TIA.
Attachments
mc-file-assoc.JPG
With this modification, simply double-click on a picture (for example) in
your mc panel list, and it will show in your default image viewer. Same
goes for pdf, html, gnumeric, vob files, etc. But hit F3 for txt files.
(89.17 KiB) Downloaded 551 times
mc.ext_Puppy-0.1.pet
Please install this small pet to have our provided Midnight Commander
4.8.18 associate file types correctly in Puppy Linux.
(5.95 KiB) Downloaded 515 times
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

#26 Post by tlchost »

musher0 wrote:
tlchost wrote:could ypu produce an sfs version that will play in 32 bit Tahr 6.0.6?
Thanks
Hi tlchost.

There you go! :)
thanks very much...seems to work fine in bootable usb tahr 6.0.6

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#27 Post by musher0 »

Good to know. My pleasure.

Thanks for your report, tlchost.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#28 Post by musher0 »

Hello all.

I suspect a number of you mc enthusiasts know this already, but you can
access the terminal without pain from mc by doing Ctrl-o (that's letter "o",
not number zero).

Source: http://superuser.com/questions/635826/s ... -commander

Once your job in the terminal is finished, type Ctrl-o again and you're
back in mc with the usual files panels.

As a reminder, the command line at the bottom of the mc panels is
always available if it's only a short command you need to run.

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#29 Post by musher0 »

Hello again.

If you don't like mc's internal viewer or editor, open
file /root/.config/mc/mc.ext, go at the bottom and
edit as follows:
### Default ###

# Default target for anything not described above
default/*
# Open=
# View=
Open=%var{EDITOR:joe} %f
View=%var{VIEWER:less} %f

### EOF ###
(Replace joe and less with your preferred editor and viewer of course.)

Source: https://www.cyberciti.biz/tips/midnight ... iewer.html

IHTH.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

256 colors

#30 Post by foxpup »

Hey musher0

I've been fiddling with mc again.
I just got 256 colors support installing rxvt-unicode-256color package. I took it from debian jessie, as I always do for Tahr.
I had to add libperl5.20 as well. ncurses-term_5.9 was mentionned as dep, but not reported as such by the ppm. I added it anyway because I had to add libncursesw5 before. (I edited a previous message about the 3 links and added this.)
The 256color skins are very nice, dark on white.

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

#31 Post by foxpup »

musher0 wrote: Nah, not Spring, not yet! Not here anyway!

I gather you'd be located in Italy or Spain where Spring starts early?
No, not around the Med, I live near the Northsea.
Wednesday was a rare day. Cold and foggy days are normal now. Spring is not near here neither.
But even 40 centimeters of snow will eventually melt!
Well, here we have to wait for a decade to see that amount of snow.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: 256 colors

#32 Post by musher0 »

foxpup wrote:Hey musher0

I've been fiddling with mc again.
I just got 256 colors support installing rxvt-unicode-256color package. I took it from debian jessie, as I always do for Tahr.
I had to add libperl5.20 as well. ncurses-term_5.9 was mentionned as dep, but not reported as such by the ppm. I added it anyway because I had to add libncursesw5 before. (I edited a previous message about the 3 links and added this.)
The 256color skins are very nice, dark on white.
Hi foxpup!

That's great news!

Would you have the URL's for those packages, please?
And a screen shot, perhaps? I'm eager to see the result.

TIA
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

foxpup
Posts: 1132
Joined: Fri 29 Jul 2016, 21:08

Re: 256 colors

#33 Post by foxpup »

musher0 wrote: Would you have the URL's for those packages, please?
And a screen shot, perhaps? I'm eager to see the result.
I just take them from the debian packages site.
For rxvt-unicode-256color you find links here: https://packages.debian.org/jessie/rxvt ... e-256color

I cannot find it in the slackware packages. Maybe the patch is already in the rxvt package from slackware and you just have to enable it in .terminfo? To be honnest, I do not know if I make any sense here. I've not used slack up till now.

Some screenshots:
Attachments
gray-orange-blue256.jpg
It's not spectacular, but the color choice is more delicate.
(71.4 KiB) Downloaded 1121 times
modarin256-defbg-thin.jpg
This one is very nice with the desktop shining through.
(67.75 KiB) Downloaded 1166 times

User avatar
Colonel Panic
Posts: 2171
Joined: Sat 16 Sep 2006, 11:09

#34 Post by Colonel Panic »

Thanks fpr this one! I've installed it and am using it now (in EmSee Ultron).
Gigabyte M68MT-52P motherboard, AMD Athlon II X4 630, 5.8 GB of DDR3 RAM and a 250 GB Hitachi hard drive running Ubuntu 16.04.6, MX-19.2, Peppermint 10, PCLinuxOS 20.02, LXLE 18.04.3, Pardus 19.2, exGENT 200119, Bionic Pup 8.0 and Xenial CE 7.5 XL.

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#35 Post by musher0 »

@Colonel Paniic:

My pleasure!


@foxpup:

Thanks for the URL of the 256 colors urxvt and for the screenshots!


BFN
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply