You are not logged in.

#1 2008-04-07 23:33:03

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Midnight Commander. Strange font encoding

after a while using mc, i notice this strange problem to appear when i execute a command from the mc command line at the bottom like du, or ls...

/downloads/New/Torrents/[isoHunt] Married.With.Children.S09.DVDRip.XviD-SAiNTS.torrent: line 2: `BÕ¶ÄýûñÎÂ-((ÔOÚñT¾9Ì 
                                                                                                                      ¾xÁæ    á@á;±Ô:eAÈêÒ3ñ ¢H¬Ñ~¶ç@îËxØ©¯ýÂ<ê'XKàñ·
3P≠Ñ#)\TÎ ¼5çß)┌'-±µ½æ¡°-␍┌π␊S)␊┴û ↑^*K羦┴¸ù®$¾°¿Æ×9ÓÙ⎽K¿#íÄ¢ïØ弨ÝüOùâj¾Ö^-¯°5)ü9(ø©r|tN8my
P⎼␊⎽⎽ ▒┼≤ ┐␊≤ ├⎺ ␌⎺┼├␋┼┤␊...
[▒┌␊≤⎽␌␤▒@▒┌␊≤⎽␌␤▒ T⎺⎼⎼␊┼├⎽]$ └┴ \[␋⎽⎺H┤┼├\]\ M▒⎼⎼␋␊␍.W␋├␤.→␤␋┌␍⎼␊┼.S09.←V←R␋⎻.X┴␋←-S↑␋NTS.├⎺⎼⎼␊┼├ /␍⎺┬┼┌⎺▒␍⎽/N␊┬/T⎺⎼⎼␊┼├⎽/├⎺⎼⎼␊┼├⎽┼␊┬/\[␋⎽⎺H┤┼├\]\ M▒⎼⎼␋␊␍.W␋├␤.→␤␋┌␍⎼␊┼.S09.←V←R␋⎻.X┴␋←-S↑␋NTS.├⎺⎼⎼␊┼├ 
P⎼␊⎽⎽ ▒┼≤ ┐␊≤ ├⎺ ␌⎺┼├␋┼┤␊...
[▒┌␊≤⎽␌␤▒@▒┌␊≤⎽␌␤▒ T⎺⎼⎼␊┼├⎽]$ ␍┤
32    ./├⎺⎼⎼␊┼├⎽┼␊┬
4528    .
P⎼␊⎽⎽ ▒┼≤ ┐␊≤ ├⎺ ␌⎺┼├␋┼┤␊...

Its weird, because i use mc quite a lot and just notice this, maybe a -syu? sad


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#2 2008-04-08 21:25:09

IndioColifa
Member
From: La Plata
Registered: 2008-04-08
Posts: 10

Re: Midnight Commander. Strange font encoding

mc is buggy as hell.

use a lot less buggy and fixed (and I think is currently being on maintenance) version:

sudo pacman -S mc-mp

The objectives of this MC fork:

http://mc.linuxinside.com cool

Last edited by IndioColifa (2008-04-08 21:27:50)

Offline

#3 2008-04-09 00:57:22

leo2501
Member
From: Buenos Aires, Argentina
Registered: 2007-07-07
Posts: 658

Re: Midnight Commander. Strange font encoding

well i try it... but it mess with my background colors and don't have mouse support, it seems better, but cant sacrifice the colors or the mouse support sad but how do you tag files for example? :S its true it seems more stable, but how do you know how to change the background colors?


Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
-- Antoine de Saint-Exupery

Offline

#4 2008-04-09 02:42:20

IndioColifa
Member
From: La Plata
Registered: 2008-04-08
Posts: 10

Re: Midnight Commander. Strange font encoding

Looking at the man page it says:

The Midnight Commander provides a way to  change  the  default  colors.
       Currently  the  colors  are  configured  using the environment variable
       MC_COLOR_TABLE or the Colors section in the initialization file.

       In the Colors section,  the  default  color  map  is  loaded  from  the
       base_color variable.  You can specify an alternate color map for a ter‐
       minal by using the terminal name as the key in this section.  Example:

       [Colors]
       base_color=
       xterm=menu=magenta:marked=,magenta:markselect=,red

       The format for the color definition is:

         <keyword>=<foregroundcolor>,<backgroundcolor>:<keyword>= ...

       The colors are  optional,  and  the  keywords  are:  normal,  selected,
       marked,  markselect,  errors,  input,  reverse  menu, menusel, menuhot,
       menuhotsel, gauge;  the dialog colors are: dnormal, dfocus, dhotnormal,
       dhotfocus; Help colors are: helpnormal, helpitalic, helpbold, helplink,
       helpslink; Viewer color is: viewunderline; Special  highlighting  mode:
       executable, directory, link, device, special.

       The dialog boxes use the following colors: dnormal is used for the nor‐
       mal text, dfocus is the color used for the  currently  selected  compo‐
       nent, dhotnormal is the color used to differentiate the hotkey color in
       normal components, whereas the dhotfocus color is used  for  the  high‐
       lighted color in the currently selected component.

       Menus  use  the  same  scheme  but  uses the menu, menusel, menuhot and
       menuhotsel tags instead.

       Help uses the following colors: helpnormal is  used  for  normal  text,
       helpitalic is used for text which is emphasized in italic in the manual
       page, helpbold is used for text which is emphasized in bold in the man‐
       ual page, helplink is used for not selected hyperlinks and helpslink is
       used for selected hyperlink.

       gauge determines color of filled part  of  the  progress  bar  (gauge),
       which  shows  how many percent of files were copied etc. in a graphical
       way.

      For file type highlighting mode directory specifies the color in  which
       directories are shown; executable for executable files; link is used to
       represent links; device for character and block devices; special is for
       special  files,  such  as  FIFO and IPC sockets; core is for core files
       (see also the option highlight_mode at  the  section  on  Special  Set‐
       tings).

       The  possible  colors  are: black, gray, red, brightred, green, bright‐
       green, brown, yellow, blue, brightblue, magenta,  brightmagenta,  cyan,
       brightcyan, lightgray and white.


Also,

Insert,  C-t.   To  tag  files  you  may  use  the  Insert key (the kich1 terminfo
       sequence) or the C-t (Control-t) sequence. To untag files,  just  retag  a  tagged
       file.


Well, read the man page, there are various options to set.

good luck!

Offline

#5 2008-04-09 02:49:01

IndioColifa
Member
From: La Plata
Registered: 2008-04-08
Posts: 10

Re: Midnight Commander. Strange font encoding

Remember, when your terminal gets scrambled by some program, press ENTER a couple of times to get to a new shell line and type "reset" (probably you'll have to type 'in the dark' since you are getting scrambled chars). This will reset completely your TTY without logging you off.

Last edited by IndioColifa (2008-04-09 02:49:57)

Offline

Board footer

Powered by FluxBB