Panel frame characters

You have encountered a problem using Far Manager? Here you can get help.
Konrad
Posts: 30
Joined: Thu Oct 13, 2005 3:47 pm

Panel frame characters

Post by Konrad » Wed Apr 05, 2006 12:51 pm

I hope it is not a secret info request, but where in the far.exe file can I find the characters used for panel frame drawing and menu check mark ("v")? The far.exe I have in mind is built 2087, size 724992.

The reason for asking is simple: with my selected locale and font, the panel frames are not drawn properly, there are question marks in some line joints and menu check marks. Patching the .exe would fix that...

So, what are the offsets? Pleeease... :wink:

Konrad
Posts: 30
Joined: Thu Oct 13, 2005 3:47 pm

Post by Konrad » Wed Apr 05, 2006 1:02 pm

...or alternatively: can you make an option/setting that would change the frame drawing characters as follows (Unicode codes in hex)

-use 2550 instead of 2564
-use 2550 instead of 2567
-use 2551 instead of 255F
-use 2551 instead of 2562
-use something instead of 221A, can be 'x' or 'v' or '+' or '*'

That would fix the ugly look.

HaRT
Posts: 100
Joined: Thu Mar 09, 2006 6:33 pm
Location: St. Petersburg, Russia

Post by HaRT » Wed Apr 05, 2006 1:37 pm

See HKCU\Software\Far\System\BoxSymbols
(sorry, comments are in Russian)

Konrad
Posts: 30
Joined: Thu Oct 13, 2005 3:47 pm

Post by Konrad » Wed Apr 05, 2006 3:40 pm

HaRT wrote:See HKCU\Software\Far\System\BoxSymbols
(sorry, comments are in Russian)
Thank you, this is exactly what I needed! If anybody else experiences the same problem with frame drawing (question marks in some parts of frames), copy this to blahblah.reg and "run" it:

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Software\Far\System]
"BoxSymbols"=hex:\
   91,25,92,25,93,25,02,25,24,25,61,25,51,25,56,25,\
   55,25,63,25,51,25,57,25,5D,25,5C,25,5B,25,10,25,\
   14,25,34,25,2C,25,1C,25,00,25,3C,25,5E,25,51,25,\
   5A,25,54,25,69,25,66,25,60,25,50,25,6C,25,50,25,\
   68,25,50,25,65,25,59,25,58,25,52,25,53,25,6B,25,\
   6A,25,18,25,0C,25,88,25,84,25,8C,25,90,25,80,25
BTW, is there any document listing all "hidden" features like this one? It is not mentioned in TechInfo.txt... Is there a similar value defining the menu check character?

Thanks again!

User avatar
Urmel
Posts: 17
Joined: Mon Mar 20, 2006 11:08 pm
Location: Switzerland

Post by Urmel » Wed Apr 05, 2006 4:10 pm

Konrad wrote:Is there a similar value defining the menu check character?
For this unexpected behaviour see the topic http://enforum.farmanager.com/viewtopic.php?t=193

Best wishes
-Urmel-
-=- A registered FAR user from switzerland -=-

Konrad
Posts: 30
Joined: Thu Oct 13, 2005 3:47 pm

Post by Konrad » Wed Apr 05, 2006 9:16 pm

Urmel wrote:
Konrad wrote:Is there a similar value defining the menu check character?
For this unexpected behaviour see the topic http://enforum.farmanager.com/viewtopic.php?t=193
Normally I see a question mark as a menu check character, using 'far /8' I get double-accent-u instead of a question mark. It is a change, but not really satisfactory.

I use raster 6x8 font and 'central Europe' set as default locale: the 'root' character (Unicode 0x221A) is mapped to 0xFB in US, Cyrillic 2, and probably other encodings, but is not present in Central European encoding (hence the quesion mark). The Central European encoding has this double-accent-u as 0xFB code (and it shows in non-Unicode console).

It's cosmetics really, although annoying. I'll stay with question mark, but it would be great to have a possiblity (registry value? option? patch?) to change 0x221A into something else...

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Wed Apr 05, 2006 9:46 pm

Try this

HKEY_CURRENT_USER\Software\Far\System\Oem2Unicode

it's a mapping of OEM special symbols to Unicode

the default is

Code: Select all

    static WCHAR _Oem2Unicode[256] = {
    /*00*/ 0x0000, 0x263A, 0x263B, 0x2665, 0x2666, 0x2663, 0x2660, 0x2022,
           0x25D8, 0x0000, 0x25D9, 0x2642, 0x2640, 0x266A, 0x266B, 0x263C,
    /*10*/ 0x25BA, 0x25C4, 0x2195, 0x203C, 0x00B6, 0x00A7, 0x25A0, 0x21A8,
           0x2191, 0x2193, 0x2192, 0x2190, 0x221F, 0x2194, 0x25B2, 0x25BC,
    /*20*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*30*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*40*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*50*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*60*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*70*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x2206,
    /*80*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*90*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*A0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*B0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*C0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*D0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*E0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
    /*F0*/ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000,
           0x0000, 0x0000, 0x0000, 0x221A, 0x0000, 0x0000, 0x0000, 0x0000,
    };

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Wed Apr 05, 2006 10:07 pm

Well, now I understand why Urmel and others doesn't see the root symbol. Well FAR can not know which font supports which symbols. So we'll need to add both those "secret" settings to the TechInfo file.

Konrad
Posts: 30
Joined: Thu Oct 13, 2005 3:47 pm

Post by Konrad » Thu Apr 06, 2006 12:33 pm

t-rex wrote:Try this
HKEY_CURRENT_USER\Software\Far\System\Oem2Unicode
Thanks again, worked perfectly. I've replaced 0x221A with 0x00BB (which is included in most of code pages and looks good, ">>"), no more question marks in frames and menus. If anybody want to correct the whole problem, here is the complete file (copy to foo.reg), the first part corrects the frame, the second part -- the menu check character.

Code: Select all

REGEDIT4

[HKEY_CURRENT_USER\Software\Far\System]
"BoxSymbols"=hex:\
  91,25,92,25,93,25,02,25,24,25,61,25,51,25,56,25,\
  55,25,63,25,51,25,57,25,5D,25,5C,25,5B,25,10,25,\
  14,25,34,25,2C,25,1C,25,00,25,3C,25,5E,25,51,25,\
  5A,25,54,25,69,25,66,25,60,25,50,25,6C,25,50,25,\
  68,25,50,25,65,25,59,25,58,25,52,25,53,25,6B,25,\
  6A,25,18,25,0C,25,88,25,84,25,8C,25,90,25,80,25

[HKEY_CURRENT_USER\Software\Far\System]
"OEM2Unicode"=hex:\
  00,00,3A,26,3B,26,65,26,66,26,63,26,60,26,22,20,\
  D8,25,00,00,D9,25,42,26,40,26,6A,26,6B,26,3C,26,\
  BA,25,C4,25,95,21,3C,20,B6,00,A7,00,A0,25,A8,21,\
  91,21,93,21,92,21,90,21,1F,22,94,21,B2,25,BC,25,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,06,22,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,BB,00,00,00,00,00,00,00,00,00
Thanks again!

User avatar
Urmel
Posts: 17
Joined: Mon Mar 20, 2006 11:08 pm
Location: Switzerland

Post by Urmel » Mon Apr 10, 2006 7:06 pm

t-rex wrote:Well, now I understand why Urmel and others doesn't see the root symbol. Well FAR can not know which font supports which symbols. So we'll need to add both those "secret" settings to the TechInfo file.
I can't understand this right now.

In the same console window as the FAR, I use the console version of the semware editor professional. In this (and in 4NT too) I can produce the root symbole with Alt-2+5+1. So I think, the used raster font contains the root symbol. Especially in 4NT which is an unicode application too.

Now, I see in the internet, that this is an difficult matter...

What for practical restrictions does I have, when I use the "/8" command line switch?

Best wishers
-Urmel-
-=- A registered FAR user from switzerland -=-

User avatar
Urmel
Posts: 17
Joined: Mon Mar 20, 2006 11:08 pm
Location: Switzerland

Post by Urmel » Mon Apr 10, 2006 7:09 pm

HaRT wrote:See HKCU\Software\Far\System\BoxSymbols
(sorry, comments are in Russian)
Is this the default BoxSymbols setting for FAR. If not so, can anyone post the deffault setting for this?

Best wishes
-Urmel-
-=- A registered FAR user from switzerland -=-

User avatar
t-rex
Admin
Posts: 417
Joined: Sun Mar 20, 2005 6:10 pm
Location: Ashdod
Contact:

Post by t-rex » Mon Apr 10, 2006 9:36 pm

The default are the ones in that link.

User avatar
Spire
Posts: 17
Joined: Tue Apr 26, 2005 4:57 pm

Post by Spire » Tue Apr 11, 2006 7:15 pm

Default box symbols:
REGEDIT4

[HKEY_CURRENT_USER\Software\Far\System]
"BoxSymbols"=hex:\
91,25,92,25,93,25,02,25,24,25,61,25,62,25,56,25,\
55,25,63,25,51,25,57,25,5D,25,5C,25,5B,25,10,25,\
14,25,34,25,2C,25,1C,25,00,25,3C,25,5E,25,5F,25,\
5A,25,54,25,69,25,66,25,60,25,50,25,6C,25,67,25,\
68,25,64,25,65,25,59,25,58,25,52,25,53,25,6B,25,\
6A,25,18,25,0C,25,88,25,84,25,8C,25,90,25,80,25
Default OEM-to-Unicode table:
REGEDIT4

[HKEY_CURRENT_USER\Software\Far\System]
"OEM2Unicode"=hex:\
00,00,3A,26,3B,26,65,26,66,26,63,26,60,26,22,20,\
D8,25,00,00,D9,25,42,26,40,26,6A,26,6B,26,3C,26,\
BA,25,C4,25,95,21,3C,20,B6,00,A7,00,A0,25,A8,21,\
91,21,93,21,92,21,90,21,1F,22,94,21,B2,25,BC,25,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,06,22,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,1A,22,00,00,00,00,00,00,00,00

cirocco
Posts: 2
Joined: Tue Mar 27, 2007 7:33 am

missing some frame characters

Post by cirocco » Tue Mar 27, 2007 7:42 am

Hi
I have upgraded Far form 1.70 beta 5 to 1.70 and some frame drawing characters are missing, I have ? instead of them. Is there a way I can configure Far 1.70 to draw frames around panels in the same way beta 5 did it?
Thanks for any help

HaRT
Posts: 100
Joined: Thu Mar 09, 2006 6:33 pm
Location: St. Petersburg, Russia

Post by HaRT » Tue Mar 27, 2007 10:40 am

cirocco
Have you at least tried to search this forum for the term “frame”? I suggest the results would be very useful.

Locked