DosTips.com

A Forum all about DOS Batch
It is currently 22 Jul 2017 18:41

All times are UTC-06:00




Post new topic  Reply to topic  [ 65 posts ]  Go to page Previous 1 2 3 4 5 Next
Author Message
PostPosted: 31 Dec 2013 12:37 
Offline

Joined: 14 Jun 2013 12:58
Posts: 12
most useful programs i used for batch are the gnuwin32 utilities grep/sed/awk


Top
   
PostPosted: 10 Feb 2016 07:17 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 6033
Antonio, are the CR LF tokens inside colorshow.exe?
In my Win 8.1 32 bit system they don't seem to give a crlf

Code: Select all
@echo off
ColorShow /1f "White on blue" CR LF
pause & goto :EOF


Quote:
White on bluePress any key to continue . . .


Top
   
PostPosted: 10 Feb 2016 08:37 
Offline
Expert

Joined: 06 Dec 2011 22:15
Posts: 1384
Location: México City, México
@foxidrive:

Not directly. You may use Ascii code numbers to use any character:

Code: Select all
ColorShow /1f "White on blue" 13 10

... or previously assign these characters to variables and then use their names, like in this example that appear in the description of Show.exe program:

Code: Select all
@echo off
setlocal

set LF=^


for /F "tokens=1-4 delims= " %%a in ('ColorShow 7 32 8 32 9 32 13 32') do (
   set "BEL=%%a" & set "BS=%%b" & set "TAB=%%c" & set "CR=%%d"
)

ColorShow /1f "White on blue" CR LF
pause & goto :EOF

It seems that most readers ignore this phrase in the description of ColorShow.exe:

on ColorShow.exe description Aacini wrote:
ColorShow.exe show characters in the same way of Show.exe program, but in color.

This means that in order to know the basic capabilities of ColorShow.exe (besides the use of color attributes), you must review the description of Show.exe.

Antonio


Top
   
PostPosted: 10 Feb 2016 08:47 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 6033
Aacini wrote:
@foxidrive:

Not directly. You may use Ascii code numbers to use any character:

Code: Select all
ColorShow /1f "White on blue" 13 10



Thank you Antonio.

Quote:
... or previously assign these characters to variables and then use their names, like in this example that appear in the description of Show.exe program:

Code: Select all
@echo off
setlocal

set LF=^


for /F "tokens=1-4 delims= " %%a in ('ColorShow 7 32 8 32 9 32 13 32') do (
   set "BEL=%%a" & set "BS=%%b" & set "TAB=%%c" & set "CR=%%d"
)

ColorShow /1f "White on blue" CR LF
pause & goto :EOF

It seems that most readers ignore this phrase in the description of ColorShow.exe:

I was a little confused because your examples show things which don't work: for example this sample in your document requires variables that aren't set in the sample code:

Code: Select all
ColorShow /%Blue%%White% "White on blue" CR LF /%Yellow% "Yellow on black" CR LF

and as you've pasted above, the CR and LF don't have percent signs.
I was wondering if my binary was an old version so I made a new one. Oops.

It's just typos and creating small samples from larger scripts, I guess.


Top
   
PostPosted: 10 Feb 2016 09:42 
Offline
Expert

Joined: 06 Dec 2011 22:15
Posts: 1384
Location: México City, México
Ok, these additional explanations may help. This is the description of Show.exe command:

on Show.exe description Aacini wrote:
Show characters from Ascii codes, string literals and Batch variables.

Show code[*times] | "literal" | variable[:[±]wide] ...

<code>, <times> and <wide> must be decimal numbers up to 255 each.

Times repeat the previous Ascii code character that number of times.
Wide define a width to show the variable value: justified at left, or justified at rigth if <wide> have minus sign, or centered if <wide> have plus sign.

At end, the number of displayed characters is returned in ERRORLEVEL.

For example:

Code: Select all
Show "Result one: " Num1 9 9 "Result two: " Num2 13 10 "Next line" 13 10

In previous example Num1 and Num2 are variables, "Next line" is a literal string and 9, 13 and 10 are Ascii codes representing TAB, CR and LF control chars, respectively.

If an Ascii code is followed by an asterisk and counter, the character is repeated that number of times. For example, the Batch subroutine below show a frame in the screen given the width and height:

Code: Select all
:ShowFrame width height
set /A width=%1-2, height=%2-2
Show 218 196*%width% 191  13 10
for /L %%i in (1,1,%height%) do Show 179 32*%width% 179  13 10
Show 192 196*%width% 217  13 10
exit /B

In this example the %width% variable must be necessarily expanded because the description of Show.exe program indicate that "<code>, <times> and <wide> must be decimal numbers up to 255 each". The CR and LF variables defined in my previous reply must not be expanded because then they interfere with the parsing of cmd.exe (unless they are enclosed in quotes).

About the color variables you mentioned, in the same post that includes 9-Ascii.exe.hex, 10-CursorSize.exe.hex, 11-TextColor.exe.hex and 12-ColorShow.exe.hex, immediately before TextColor.exe program this example appears:

before 11-TextColor.exe.hex Aacini wrote:
The following Batch subroutine define several values useful to write color attributes:

Code: Select all
:DefineColorCodes
set HexDigit=0123456789ABCDEF
set c=-1
for %%c in ( Black Blue  Green  Aqua  Red  Purple  Brown  White
             Grey  LBlue LGreen LAqua LRed LPurple Yellow BWhite ) do (
   set /A c+=1
   for %%C in (!c!) do set %%c=!HexDigit:~%%C,1!
)
exit /B


Although the first example of TextColor use these variables with no previous explanation that the DefineColorCodes subroutine must be previously called:

Code: Select all
TextColor %Blue%%White%

... such subroutine and its variables appears just one page above this example.

This topic is extensive, so I tried to not include superfluous data that just made it even larger. Most of the small examples does not include the initial lines of a Batch file that may even avoid they works, like "setlocal". In despite of this detail, if you read complete replies you should have not problems knowing what are the values/switches/subroutines/etc. that should be included in each case. As a matter of fact, this is the reason because each reply is relatively big and include several programs: each reply comprise a sub-theme that must be entirely read as a unit.

Antonio


Top
   
PostPosted: 10 Feb 2016 16:53 
Offline

Joined: 08 Feb 2016 20:25
Posts: 127
Quote:
Do other readers have any opinion about this? Please chime in if you agree with me.

Put it this way - I may never have tried out Antonio's great little utilities if you hadn't compiled them for us :)
Quote:
I'd appreciate it if you report any problem you may find.

I have found an issue with your "Textcolor.exe" program. It seems that it is case-sensitive when entering certain color codes where the "ColorShow.exe" program works in either upper or lower case. You can run this to see what I mean:
Code: Select all
@ECHO off
colorshow /0e "hello" 13 10
textcolor 0e
@ECHO hello
textcolor 07
colorshow /0E "hello" 13 10
textcolor 0E
@ECHO hello
textcolor 07


Top
   
PostPosted: 11 Feb 2016 12:10 
Offline

Joined: 28 Jun 2010 03:46
Posts: 275
foxidrive wrote:
That is what I was trying to say - the method to create your executable files is complicated and needs too many steps.
Why not create a single script for each binary?

Do other readers have any opinion about this? Please chime in if you agree with me.


I agree with you on this, Foxi.

I really like Aacini's solutions. But his method to create .exe files is too time consuming/complicated for me. So I make this step once and then I prefer Carlos' EXPAND method to make .exe files (I then pack Aacini's .exe file into .cab file).

Just now I decided to test his ColorShow.exe in my batch program. I was using Carlos' color function with FINDSTR but it is too slow for one task I have. I am sure Aacini's ColorShow.exe will be better option.

Aacini: thank you very much for your contribution to this site. I really appreciate it (and many do I am sure).

Saso


Top
   
PostPosted: 13 Feb 2016 00:55 
Offline

Joined: 08 Feb 2016 20:25
Posts: 127
Aacini, I found another issue with colorshow.exe (in addition to the one mentioned above).
It does not properly display color from variables containing [TABS]
This code produces the results below:
Code: Select all
@ECHO/
set "str1=   drive\path\file.txt"
set "str2=      drive\path\file.txt"
set "str3=      drive\path\file.txt"
colorshow /3f str1 13 10
colorshow /3f str2 13 10
colorshow /3f str3 13 10
@ECHO/

Image
The in the code above:
"str1=[TAB]drive\path\file.txt"
"str2=[TAB][TAB]drive\path\file.txt"
str3 contains NO [TAB]s - only [SPACES]


Top
   
PostPosted: 13 Feb 2016 09:32 
Offline
Expert

Joined: 22 Jan 2010 18:01
Posts: 2714
Location: Germany
While a tab is actually a single character, it separates a line in a console window into parts that are dividable by 8. The tab character itself isn't displayed but an appropriate number of spaces between 1 and 8. Certainly it is possible to change Aacini's program (I don't know the source code though). In the meantime you could perform your own formatting based on spaces.

Regards
aGerman


Top
   
PostPosted: 13 Feb 2016 13:11 
Offline
Expert

Joined: 06 Dec 2011 22:15
Posts: 1384
Location: México City, México
mirrormirror wrote:
Aacini wrote:
I'd appreciate it if you report any problem you may find.


I have found an issue with your "Textcolor.exe" program. It seems that it is case-sensitive when entering certain color codes where the "ColorShow.exe" program works in either upper or lower case. You can run this to see what I mean:

First of all, I really appreciate your report about the TextColor.exe program bug. Thanks a lot! However...

I posted the TextColor.exe program on July/2012; this means that you are the first person that reported this bug in more than 3 and a half years! This caused me conflicting feelings ("Thank you for reporting it" :) "Why nobody reported it before?" :( ). This type of details give me a measure of how much some of my programs are really used and is one of the reasons that discourage me from making updates to the already posted utilities, documentation, method of use they, etc.

As I said in the original post, TextColor program did not correctly worked in all computers (including my own), so I had not a chance to test it at that time; however, it correctly works now on my recent Windows 8.1 computer. Effectively: there is a small bug when the color attribute is given with lowercase letters, but I also discovered that the possibility of set different colors for Stdout and Stderr handles will never work. I will modify both the program and the documentation and post the new version here ASAP.

For those of you that didn't realized what TextColor is about: the popular ColorShow.exe program just show text in color and that is it, but the underestimated TextColor.exe set the color that will be used by all posterior text output commands including the standard cmd.exe ones, like ECHO, DIR, etc. Try this:

Code: Select all
TextColor 1F & set /P "=Hello " < NUL & TextColor 4E & echo World& TextColor 7




mirrormirror wrote:
Aacini, I found another issue with colorshow.exe (in addition to the one mentioned above).
It does not properly display color from variables containing [TABS]

ColorShow program use a different method to show text in color that use two buffers: one for the characters and another one for the color attributes; for this reason some control-chars must be explicitly processed, otherwise the colors and characters are shown out of sync. Each TAB character is expanded into the corresponding number of spaces as aGerman said, but this is done only when its Ascii code is explicitly given. The individual characters inside variables or strings are not procesed this way, not only because it is unusual that Batch variables contain such control-chars, but also because doing that will over-complicate the justification of variables allowed by the [+|-]width option.

Antonio


Top
   
PostPosted: 13 Feb 2016 19:02 
Offline

Joined: 08 Feb 2016 20:25
Posts: 127
Quote:
you are the first person that reported this bug in more than 3 and a half years!

Maybe your code is so good that there are no other bugs :)
I found the bug because I realized how useful your utilities actually were - and I started using them. I, for one, am very grateful that you did make them available for us - thank you!
I actually have a couple of feature requests for you to consider...

colorshow has the useful ability to display text from a variable within another block of text like this:
colorshow MyVar:+100
It would be nice to be able to also do this using a literal string like:
colorshow "hello world":+100
Also in this mode, it always displays the text within a block of [SPACES]. It would be nice to be able to choose another character instead of a space. For examle. In order to display something like this:
---------- Hello World ----------
I would need to add "----------" both before and after my Text. I currently do this using your cursorpos.exe utility but it would be nice if colorshow could do it natively.

Thanks for considering.


Top
   
PostPosted: 14 Feb 2016 02:21 
Offline
Expert

Joined: 10 Feb 2012 02:20
Posts: 6033
mirrormirror wrote:
I, for one, am very grateful that you did make them available for us - thank you!


Make that two. I have made suggestions, but never actually said that I am grateful also.

Thanks Antonio.


foxi


Top
   
PostPosted: 14 Feb 2016 10:22 
Offline
Expert

Joined: 22 Jan 2010 18:01
Posts: 2714
Location: Germany
I second that. Thanks Antonio!

mirrormirror wrote:
but it would be nice if colorshow could do it natively

You are looking for a panacea to meet exactly your needs. I fully agree with Antonio that it would absolutely overcomplicate the tool. Keep in mind that the program is named "colorshow" which tells you something about its purpose.

@Antonio
18.5K views is nothing to sneeze at :wink: Maybe somebody did already find the bug but not every viewer/user bekame a member at DosTips.
It might be off topic or not, it might also be useful for you or not - I wrote my own little tool years ago which is able to display colored tabs in a proper way. Also it behaves like ECHO with extended ASCII characters (such as box-drawing characters). I achieved that by a funny conversation from wchar_t* to char* using CharToOemW().
C/WinAPI:
Code: Select all
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

void help(const wchar_t *const me)
{
  wprintf(  L"Sets the console foreground and background colors for a\n"
            L" specified text in the console window.\n\n"
            L"Syntax:\n"
            L" %s bf text [/n]\n\n"
            L"        bf      Background and foreground color as HEX digits.\n"
            L"                        0 = Black       8 = Gray\n"
            L"                        1 = Blue        9 = Light Blue\n"
            L"                        2 = Green       A = Light Green\n"
            L"                        3 = Aqua        B = Light Aqua\n"
            L"                        4 = Red         C = Light Red\n"
            L"                        5 = Purple      D = Light Purple\n"
            L"                        6 = Yellow      E = Light Yellow\n"
            L"                        7 = White       F = Bright White\n\n"
            L"        text    Text to print. Has to be enclosed in double\n"
            L"                 quotes if it contains white spaces.\n"
            L"                 Literally printed quotation marks have to be\n"
            L"                 escaped with a backslash.\n\n"
            L"        /n      Optional to start a new line after the string\n"
            L"                 was printed.\n\n"
            , me );
}


// Working around missing wmain() support using compilers other than VC++.
typedef struct __startupinfo
{
  int newmode;
} _startupinfo;

extern
#ifdef __cplusplus
"C"
#endif
int __cdecl __wgetmainargs(int *_Argc, wchar_t ***_Argv, wchar_t ***_Env, int _DoWildCard, _startupinfo *_StartInfo);

int w_main(int argc, wchar_t *argv[]);

int main(void)
{
  _startupinfo si;
  int argc = 0;
  wchar_t **argv = NULL, **env = NULL;
  si.newmode = 0;

  if (__wgetmainargs(&argc, &argv, &env, 0, &si))
    return 1;
  else
    return w_main(argc, argv);
}


// Own w_main() to get passed arguments as string of wide characters.
int w_main(int argc, wchar_t **argv)
{
  CONSOLE_SCREEN_BUFFER_INFO csbi;
  HANDLE hOut = NULL;
  unsigned long col = 0u;
  wchar_t *endptr = NULL;
  char *buf = NULL;

  errno = 0;
  if (argc < 3
      || argc > 4
      || (hOut = GetStdHandle(STD_OUTPUT_HANDLE)) == INVALID_HANDLE_VALUE
      || (argc == 4 && wcscmp(argv[3], L"/n"))
      || (col = wcstoul(argv[1], &endptr, 16)) > 255u
      || *endptr
      || errno
      || !GetConsoleScreenBufferInfo(hOut, &csbi)
      || !(buf = (char*)malloc(wcslen(argv[2]) + 1)))
  {
    help(argv[0]);
    return 1;
  }

  if (!CharToOemW(argv[2], buf) // This conversion from wchar_t* to char* makes the tool behave the same as ECHO for characters ASCII >127 (like box-drawing characters)
      || !SetConsoleTextAttribute(hOut, col))
  {
    free(buf);
    return 1;
  }

  printf(argc == 4 ? "%s\n" : "%s", buf);
  free(buf);

  if (!SetConsoleTextAttribute(hOut, csbi.wAttributes))
    return 1;

  return 0;
}

I remember you uses a lightweigt C compiler. Thus I revised the code to be as C89 compliant as I can. (Unfortunately I lost the link to your homepage.) Feel free to utilize it in either way. Maybe there is some food for thought in the code.

Regards
aGerman


Top
   
PostPosted: 14 Feb 2016 11:59 
Offline
Expert

Joined: 22 Jan 2010 18:01
Posts: 2714
Location: Germany
Addendum for not being that much off topic:
Batch file to create the tool
Code: Select all
@echo off
>"col.b64" (
echo(-----BEGIN CERTIFICATE-----
echo(TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5v
echo(dCBiZSBydW4g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GEAeAA6AAoAIAAlAHMAIABiAGYA
echo(IAB0AGUAeAB0ACAAWwAvAG4AXQAKAAoAIAAgACAAIAAgACAAIAAgAGIAZgAgACAA
echo(IAAgACAAIABCAGEAYwBrAGcAcgBvAHUAbgBkACAAYQBuAGQAIABmAG8AcgBlAGcA
echo(cgBvAHUAbgBkACAAYwBvAGwAbwByACAAYQBzACAASABFAFgAIABkAGkAZwBpAHQA
echo(cwAuAAoAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgACAAMAAgAD0AIABCAGwAYQBjAGsAIAAgACAAIAAgACAAIAA4ACAAPQAgAEcA
echo(cgBhAHkACgAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgACAAIAAxACAAPQAgAEIAbAB1AGUAIAAgACAAIAAgACAAIAAgADkAIAA9ACAA
echo(TABpAGcAaAB0ACAAQgBsAHUAZQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgACAAIAAgACAAIAAgACAAIAAgADIAIAA9ACAARwByAGUAZQBuACAAIAAgACAA
echo(IAAgACAAQQAgAD0AIABMAGkAZwBoAHQAIABHAHIAZQBlAG4ACgAgACAAIAAgACAA
echo(IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAzACAAPQAgAEEA
echo(cQB1AGEAIAAgACAAIAAgACAAIAAgAEIAIAA9ACAATABpAGcAaAB0ACAAQQBxAHUA
echo(YQAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgADQAIAA9ACAAUgBlAGQAIAAgACAAIAAgACAAIAAgACAAQwAgAD0AIABMAGkA
echo(ZwBoAHQAIABSAGUAZAAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgACAAIAAgACAAIAAgADUAIAA9ACAAUAB1AHIAcABsAGUAIAAgACAAIAAgACAA
echo(RAAgAD0AIABMAGkAZwBoAHQAIABQAHUAcgBwAGwAZQAKACAAIAAgACAAIAAgACAA
echo(IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgADYAIAA9ACAAWQBlAGwA
echo(bABvAHcAIAAgACAAIAAgACAARQAgAD0AIABMAGkAZwBoAHQAIABZAGUAbABsAG8A
echo(dwAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAA
echo(IAAgADcAIAA9ACAAVwBoAGkAdABlACAAIAAgACAAIAAgACAARgAgAD0AIABCAHIA
echo(aQBnAGgAdAAgAFcAaABpAHQAZQAKAAoAIAAgACAAIAAgACAAIAAgAHQAZQB4AHQA
echo(IAAgACAAIABUAGUAeAB0ACAAdABvACAAcAByAGkAbgB0AC4AIABIAGEAcwAgAHQA
echo(bwAgAGIAZQAgAGUAbgBjAGwAbwBzAGUAZAAgAGkAbgAgAGQAbwB1AGIAbABlAAoA
echo(IAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAHEAdQBvAHQAZQBzACAA
echo(aQBmACAAaQB0ACAAYwBvAG4AdABhAGkAbgBzACAAdwBoAGkAdABlACAAcwBwAGEA
echo(YwBlAHMALgAKACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIABMAGkA
echo(dABlAHIAYQBsAGwAeQAgAHAAcgBpAG4AdABlAGQAIABxAHUAbwB0AGEAdABpAG8A
echo(bgAgAG0AYQByAGsAcwAgAGgAYQB2AGUAIAB0AG8AIABiAGUACgAgACAAIAAgACAA
echo(IAAgACAAIAAgACAAIAAgACAAIAAgACAAZQBzAGMAYQBwAGUAZAAgAHcAaQB0AGgA
echo(IABhACAAYgBhAGMAawBzAGwAYQBzAGgALgAKAAoAIAAgACAAIAAgACAAIAAgAC8A
echo(bgAgACAAIAAgACAAIABPAHAAdABpAG8AbgBhAGwAIAB0AG8AIABzAHQAYQByAHQA
echo(IABhACAAbgBlAHcAIABsAGkAb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AAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAACAQAAcgEAAkFNAACBwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
echo(AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
echo(-----END CERTIFICATE-----
)
certutil.exe -f -decode "col.b64" "col.exe"
del "col.b64"


Test code (script saved with codepage 1252, my default console codepage is 850 -- these are the conditions where the box drawing characters of this example are displayed correctly)
Code: Select all
@echo off
color f0
mode con cols=50 lines=10

echo(
col f0 "    "
col 1e "ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿" /n
col f0 "    "
col 1e "³ The "
col 4e "\"Hello World\""
col 1e " Test. ³" /n
col f0 "    "
col 1e "ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ" /n
echo(
echo(
echo   Did it work?
echo(
pause


Top
   
PostPosted: 07 Mar 2016 02:52 
Offline

Joined: 28 Jun 2010 03:46
Posts: 275
I finally managed to do some tests with COLORSHOW.EXE. Looks great!

I have this problem:

Code: Select all
@echo off
echo.
echo.
echo.

set part1=       &rem
set part2=1&rem
set part3=    ł==  ł   6   5&rem these characters are 0xB3 (vertical graphic bar in CP852)

echo %part1%%part2%%part3%
colorshow.exe /07 "%part1%" /E0 "%part2%" /07 "%part3%"

echo.
echo.

set part1=       &rem
set part2=1&rem
set part3=    !==  !   6   5&rem

echo %part1%%part2%%part3%
colorshow.exe /07 "%part1%" /E0 "%part2%" /07 "%part3%"

echo.
echo.

set part1=       &rem
set part2=1&rem
set part3=    ^|==  ^|   6   5&rem these characters are 0x7C

REM if REM is removed echo fails
REM echo %part1%%part2%%part3%
colorshow.exe /07 "%part1%" /E0 "%part2%" /07 "%part3%"


Output:

Code: Select all
       1    │==  │   6   5
       [color=#FFFF00]1[/color]    -==  -   6   5

       1    !==  !   6   5
       [color=#FFFF00]1[/color]    !==  !   6   5

       [color=#FFFF00]1[/color]    |==  |   6   5


Any ideas why first colorshow.exe shows "-" instead of "|"?

Thanks.
Saso


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 65 posts ]  Go to page Previous 1 2 3 4 5 Next

All times are UTC-06:00


Who is online

Users browsing this forum: Google [Bot], ShadowThief, Yahoo [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited