Bug: ESC character is only half width (screws up editing)

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Bug: ESC character is only half width (screws up editing)

Postby pmk65 » Mon Jul 17, 2017 7:33 pm

I recently needed to add some colors to a batch file output. And for this you have to enter Virtual Terminal Sequences starting with ESC (ASCII 27) See: https://msdn.microsoft.com/en-us/library/windows/desktop/mt638032(v=vs.85).aspx

In WeBuilder this character shows up as a rectangle, but only half the width of the regular characters.
This screws up the cursor positions on the line with the ESC characters.

I ended up having to edit the file in UltraEdit as that displays the ESC in similar fashion, but the width is the same as regular characters. (It just have some extra space on the right side of the character)
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: ESC character is only half width (screws up editing

Postby Aivars » Tue Jul 18, 2017 2:20 pm

Can you send me some sample text file that contains a few of those characters? I would attach it to the bug report for easier diagnostics. Thanks!
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Bug: ESC character is only half width (screws up editing

Postby pmk65 » Tue Jul 18, 2017 5:53 pm

I also tried switching font in WeBuilder to "Courier New" which was the font used in my UltraEdit. But the same problem occurs.

Since the font used is a fixed-width font, maybe you can force the width to always be equal to the width of the "W" character.

Attached is a small batch script illustrating the problems with the ESC character.
colortest.zip
Small batch script illustrating the problems with the ESC character.
(641 Bytes) Downloaded 240 times
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 678
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Re: Bug: ESC character is only half width (screws up editing

Postby Aivars » Tue Jul 18, 2017 6:51 pm

Thanks! I have no idea how easy or hard this problem is, we will need to do some researching first.
Blumentals Software Programmer
User avatar
Aivars
Blumentals Software Developer
 
Posts: 2453
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia


Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: No registered users and 11 guests