Can I get access to an ascii character not in the standard set?
Moderator: DosItHelp
Re: Can I get access to an ascii character not in the standard set?
I'll check this out on a Windows 10 forum.
Typing chcp and any code page number, including 437, changes
the font away from Raster 8x12. Changing the code page immediately
again changes and appearance to a smaller font but a check of font properties
shows it to be the same font size, 12pt. Strange
Thanks penpen.
Typing chcp and any code page number, including 437, changes
the font away from Raster 8x12. Changing the code page immediately
again changes and appearance to a smaller font but a check of font properties
shows it to be the same font size, 12pt. Strange
Thanks penpen.
Re: Can I get access to an ascii character not in the standard set?
I've given up on fixing my CHCP issue which, whenever I run the CHCP command, re-assigns the raster font 8x12 to a non-raster font,
and only that font was an issue. I was using CHCP to access a character to use temporarily as a replacement for the double quote.
I couldn't bring myself to setting my PC back to its factory settings. I believe the problem is solved by using ascii #27 as a substitute
character for the double quote while the batch script is performing alignments and text/character copying and reversals.
I ran through my 100+ samples and saw no difference when using ascii #27 instead of quarternote.
One day in the distant future the project will be finished and ready for its debut as non-hybrid batches-o-wonder that will have
several tools, of which the output of one can be the input of itself, or the input of the others for further development.
The challenge was to develop batch code to allow you to control what text or characters go where inside boxes and cells, and without
vbscript in the code. The end product is a typed file. The color aspect of the project was added after I was inspired by the ansi sequence
examples from this forum. I started with the 256-color palette and got that working, but am now working on adding all colors
from entries of RGB numbers, or color name, or color # 1-7000.
The color tools (browsing colors & adding colors to your text files) will only work in Windows 10.
Descriptions by batch file are: 1) border, boxes, patterns, file joining (side-by-side), file overlays & more
2) columnar-read file formatting
3) colors assigned to a text file, including lines & columns & text area (2,777,216 colors available), with access to 7,000 color names in #4
or assign background and foreground colors by RGB
4) browse 7,000 named colors with RGB labels, small samples, larger samples, big samples, and browse by color groups
4A) Step through all colors by RGB, pressing keys to add to or subtract from each RGB component
Batch files are huge and none have hybrid code.
Jerry
and only that font was an issue. I was using CHCP to access a character to use temporarily as a replacement for the double quote.
I couldn't bring myself to setting my PC back to its factory settings. I believe the problem is solved by using ascii #27 as a substitute
character for the double quote while the batch script is performing alignments and text/character copying and reversals.
I ran through my 100+ samples and saw no difference when using ascii #27 instead of quarternote.
One day in the distant future the project will be finished and ready for its debut as non-hybrid batches-o-wonder that will have
several tools, of which the output of one can be the input of itself, or the input of the others for further development.
The challenge was to develop batch code to allow you to control what text or characters go where inside boxes and cells, and without
vbscript in the code. The end product is a typed file. The color aspect of the project was added after I was inspired by the ansi sequence
examples from this forum. I started with the 256-color palette and got that working, but am now working on adding all colors
from entries of RGB numbers, or color name, or color # 1-7000.
The color tools (browsing colors & adding colors to your text files) will only work in Windows 10.
Descriptions by batch file are: 1) border, boxes, patterns, file joining (side-by-side), file overlays & more
2) columnar-read file formatting
3) colors assigned to a text file, including lines & columns & text area (2,777,216 colors available), with access to 7,000 color names in #4
or assign background and foreground colors by RGB
4) browse 7,000 named colors with RGB labels, small samples, larger samples, big samples, and browse by color groups
4A) Step through all colors by RGB, pressing keys to add to or subtract from each RGB component
Batch files are huge and none have hybrid code.
Jerry
Re: Can I get access to an ascii character not in the standard set?
I'm pretty sure this is a planned feature of the new Windows 10 console, but I don't understand the rationale. It appears that certain code pages are incompatible with raster fonts within the new console unless you force the console into "legacy" mode. I reported this at viewtopic.php?f=3&t=7347&p=48906&hilit=code+page#p48906
dbenham wrote: ↑07 Sep 2016 19:35The problem occurs with the following command:Very odd. There seems to be some incompatibility with the new Win 10 Console.Code: Select all
CHCP 1252
When looking at the Console properties window, Options Tab, I have the "Use legacy console" option unchecked so that I can use new features like ANSI escape sequences, and [Ctrl-V] paste, etc.
Normally my code page is 437, and my console is using a raster font.
When I issue CHCP 1252, all hell breaks loose. The font changes to Courier New, and the text is tiny. CHCP 437 does not reset the console font back to a raster font.
If I activate the "Use legacy console" option, close the console, and then open a new one, then all is good. I can change the code page with CHCP at will with no ill effects. The console font remains a raster font. But now I cannot use the new console features
Dave Benham
Re: Can I get access to an ascii character not in the standard set?
Thanks for the CHCP info. It's good to know the CHCP command changing a raster font
to non-raster is not unique to my PC configuration.
I wanted to borrow a character from code page 65001 as a temporary replacement character for
the double quote, but will not be doing that from what I've learned here. Ascii escape char. #27 as a replacement
did not work out either because the color tools being developed uses that character to produce colors in
text files. This output can be input for the borders & boxes tool, which needs to replace double quotes during text editing
with a single (unused) character.
Tests using the backspace character, ascii #8, caused no issues with the borders tool samples, nor in feeding
text files that include ansi sequence codes (for colors) into the borders tool for further manipulation. I am taking
a list of 7,000 colors showing the color, color name, RGB and creating a 3-across list from that with bdrs.bat,
so instead of a list of, say, 50 color descriptions, there are 150 per page when browsed with the colors tool.
If anyone is interested in seeing what a colors page looks like, educate me on how to put an image into this thread.
to non-raster is not unique to my PC configuration.
I wanted to borrow a character from code page 65001 as a temporary replacement character for
the double quote, but will not be doing that from what I've learned here. Ascii escape char. #27 as a replacement
did not work out either because the color tools being developed uses that character to produce colors in
text files. This output can be input for the borders & boxes tool, which needs to replace double quotes during text editing
with a single (unused) character.
Tests using the backspace character, ascii #8, caused no issues with the borders tool samples, nor in feeding
text files that include ansi sequence codes (for colors) into the borders tool for further manipulation. I am taking
a list of 7,000 colors showing the color, color name, RGB and creating a 3-across list from that with bdrs.bat,
so instead of a list of, say, 50 color descriptions, there are 150 per page when browsed with the colors tool.
If anyone is interested in seeing what a colors page looks like, educate me on how to put an image into this thread.
Re: Can I get access to an ascii character not in the standard set?
Below is an image from one tool in a set of tools in development.
It is from a colors viewer with options to expand to larger samples,
2-color contrast samples, screen-size sample, and other options.
You make note of the colors you want to use, and with another tool
I'll call ansitool.bat, assign colors to areas of a text file
using the RGB code or color name or the sequence number assigned
to each color from the list.
With ansitool, background and foreground colors can be assigned
to borders, text area, specific horizontal lines, specific columns,
header area and footer area.
Character temporary replacement is a big part of my non-hybrid tool suite
workability. Without it I would have been defeated by the gang of poison
characters.
A side-by-side file joining feature is included in bdrs.bat, and that
tool was used to produce the three lists across in the screen image.
This color view is from one large file and color groups are also stored in
individual files. The files can be re-configured with a different page length.
can't figure out how to insert the image from my c:\temp folder
dropbox link to image file deleted. I see that files can only be shared by paid subscribers
It is from a colors viewer with options to expand to larger samples,
2-color contrast samples, screen-size sample, and other options.
You make note of the colors you want to use, and with another tool
I'll call ansitool.bat, assign colors to areas of a text file
using the RGB code or color name or the sequence number assigned
to each color from the list.
With ansitool, background and foreground colors can be assigned
to borders, text area, specific horizontal lines, specific columns,
header area and footer area.
Character temporary replacement is a big part of my non-hybrid tool suite
workability. Without it I would have been defeated by the gang of poison
characters.
A side-by-side file joining feature is included in bdrs.bat, and that
tool was used to produce the three lists across in the screen image.
This color view is from one large file and color groups are also stored in
individual files. The files can be re-configured with a different page length.
can't figure out how to insert the image from my c:\temp folder
dropbox link to image file deleted. I see that files can only be shared by paid subscribers
Re: Can I get access to an ascii character not in the standard set?
Copy the lines below to a text file, make a large cmd window and type out
the file with the TYPE command. It is a sample page of the color viewing batch file
from my previous post. I was not able to make the image insert happen; lack of forum skills,
or too cheap to pay for a file storing service.
Formatting 3 lists on a page that has colored fields was done by padding RGB numbers with
leading zeros, making the length of ansi sequence codes all the same helps in the allignment
of all fields on the page.
Text deleted. The escape character disappears when posted. I'll get to work on another angle.
update: done with a batch file with findstr and a for loop method shared by foxidrive long ago.
the file with the TYPE command. It is a sample page of the color viewing batch file
from my previous post. I was not able to make the image insert happen; lack of forum skills,
or too cheap to pay for a file storing service.
Formatting 3 lists on a page that has colored fields was done by padding RGB numbers with
leading zeros, making the length of ansi sequence codes all the same helps in the allignment
of all fields on the page.
Text deleted. The escape character disappears when posted. I'll get to work on another angle.
update: done with a batch file with findstr and a for loop method shared by foxidrive long ago.
Code: Select all
@echo off
setlocal EnableDelayedExpansion
For /F %%a In ('echo prompt $E^| cmd') Do Set "ESC=%%a"
Set "reset=%ESC%[0m"
>_page7.txt (echo( )
for /f "tokens=1,* delims=:@" %%a in ('findstr /n "^@:" "%~f0" ') do (
Set "_string=%%b"
>>_page7.txt ( echo !_string:e[=%ESC%[!)
)
Type _page7.txt & DEL _page7.txt
endlocal & exit /b
@: e[48;2;0;0;0;38;2;0;205;0mSpaceBar=Next \=Prev .=Exit a-z=Navigate to Page R/O/Y/G/B/P/W/A = View Color Groups #=Larger Samples Page 7 of 47
@: e[38;2;177;016;071mÛÛÛe[0m 901 Cardinal 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ177,16,71ÿÿ e[38;2;146;149;148mÛÛÛe[0m 951 Cascade 4ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ146,149,148ÿÿ e[38;2;193;179;178mÛÛÛe[0m 1001 Chaise Mauveÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ193,179,178ÿÿ
@: e[38;2;189;032;049mÛÛÛe[0m 902 Cardinal 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ189,32,49ÿÿ e[38;2;148;157;154mÛÛÛe[0m 952 Cascade 5ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ148,157,154ÿÿ e[38;2;097;113;077mÛÛÛe[0m 1002 Chalet Greenÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ97,113,77ÿÿ
@: e[38;2;192;022;065mÛÛÛe[0m 903 Cardinal 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ192,22,65ÿÿ e[38;2;171;180;160mÛÛÛe[0m 953 Cascade Greenÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ171,180,160ÿÿ e[38;2;085;096;129mÛÛÛe[0m 1003 Chambrayÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ85,96,129ÿÿ
@: e[38;2;196;030;058mÛÛÛe[0m 904 Cardinal 4ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ196,30,58ÿÿ e[38;2;214;179;160mÛÛÛe[0m 954 Cashmereÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ214,179,160ÿÿ e[38;2;173;141;084mÛÛÛe[0m 1004 Chamoisÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ173,141,84ÿÿ
@: e[38;2;204;032;049mÛÛÛe[0m 905 Cardinal 5ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ204,32,49ÿÿ e[38;2;163;183;184mÛÛÛe[0m 955 Casperÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ163,183,184ÿÿ e[38;2;160;120;090mÛÛÛe[0m 1005 Chamoiseeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ160,120,90ÿÿ
@: e[38;2;209;031;084mÛÛÛe[0m 906 Cardinal 6ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ209,31,84ÿÿ e[38;2;101;103;092mÛÛÛe[0m 956 Cast Ironÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ101,103,92ÿÿ e[38;2;231;227;197mÛÛÛe[0m 1006 Chamomileÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ231,227,197ÿÿ
@: e[38;2;222;233;234mÛÛÛe[0m 907 Carefreeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ222,233,234ÿÿ e[38;2;000;086;059mÛÛÛe[0m 957 Castleton Greenÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ0,86,59ÿÿ e[38;2;250;214;165mÛÛÛe[0m 1007 Champagneÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ250,214,165ÿÿ
@: e[38;2;190;157;158mÛÛÛe[0m 908 Careys Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ190,157,158ÿÿ e[38;2;174;111;090mÛÛÛe[0m 958 Cavern Clayÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ174,111,90ÿÿ e[38;2;243;229;206mÛÛÛe[0m 1008 Champagne 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ243,229,206ÿÿ
@: e[38;2;199;151;161mÛÛÛe[0m 909 Careys Pink 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ199,151,161ÿÿ e[38;2;221;187;187mÛÛÛe[0m 959 Cavern Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ221,187,187ÿÿ e[38;2;247;231;206mÛÛÛe[0m 1009 Champagne 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ247,231,206ÿÿ
@: e[38;2;205;196;174mÛÛÛe[0m 910 Cargo Pantsÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ205,196,174ÿÿ e[38;2;048;046;047mÛÛÛe[0m 960 Caviarÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ48,46,47ÿÿ e[38;2;135;000;000mÛÛÛe[0m 1010 Chanticleerÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ135,0,0ÿÿ
@: e[38;2;191;125;093mÛÛÛe[0m 911 Caribbean Coralÿÿÿÿÿÿÿÿÿÿÿÿÿÿ191,125,93ÿÿ e[38;2;170;208;217mÛÛÛe[0m 961 Cayÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ170,208,217ÿÿ e[38;2;240;188;201mÛÛÛe[0m 1011 Chantillyÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ240,188,201ÿÿ
@: e[38;2;000;204;150mÛÛÛe[0m 912 Caribbean Greenÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ0,204,150ÿÿ e[38;2;192;077;053mÛÛÛe[0m 962 Cayenneÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ192,77,53ÿÿ e[38;2;243;188;200mÛÛÛe[0m 1012 Chantilly 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ243,188,200ÿÿ
@: e[38;2;000;204;175mÛÛÛe[0m 913 Caribbean Green 1ÿÿÿÿÿÿÿÿÿÿÿÿÿ0,204,175ÿÿ e[38;2;196;075;047mÛÛÛe[0m 963 Cayenne 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ196,75,47ÿÿ e[38;2;225;229;238mÛÛÛe[0m 1013 Chapeau Violetÿÿÿÿÿÿÿÿÿÿÿÿÿÿ225,229,238ÿÿ
@: e[38;2;002;204;120mÛÛÛe[0m 914 Caribbean Green 2ÿÿÿÿÿÿÿÿÿÿÿÿÿ2,204,120ÿÿ e[38;2;152;109;163mÛÛÛe[0m 964 Ce Soirÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ152,109,163ÿÿ e[38;2;064;069;070mÛÛÛe[0m 1014 Charadeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ64,69,70ÿÿ
@: e[38;2;002;215;130mÛÛÛe[0m 915 Caribbean Green 3ÿÿÿÿÿÿÿÿÿÿÿÿÿ2,215,130ÿÿ e[38;2;146;161;207mÛÛÛe[0m 965 Ceilÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ146,161,207ÿÿ e[38;2;066;069;070mÛÛÛe[0m 1015 Charade 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ66,69,70ÿÿ
@: e[38;2;009;214;132mÛÛÛe[0m 916 Caribbean Green 4ÿÿÿÿÿÿÿÿÿÿÿÿÿ9,214,132ÿÿ e[38;2;233;236;232mÛÛÛe[0m 966 Ceiling Bright Whiteÿÿÿÿÿÿÿÿ233,236,232ÿÿ e[38;2;054;069;079mÛÛÛe[0m 1016 Charcoalÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ54,69,79ÿÿ
@: e[38;2;228;125;145mÛÛÛe[0m 917 Carissmaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ228,125,145ÿÿ e[38;2;172;225;175mÛÛÛe[0m 967 Celadonÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ172,225,175ÿÿ e[38;2;068;068;068mÛÛÛe[0m 1017 Charcoal 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ68,68,68ÿÿ
@: e[38;2;235;132;144mÛÛÛe[0m 918 Carissma 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ235,132,144ÿÿ e[38;2;172;236;173mÛÛÛe[0m 968 Celadon 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ172,236,173ÿÿ e[38;2;070;070;070mÛÛÛe[0m 1018 Charcoal 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ70,70,70ÿÿ
@: e[38;2;244;255;201mÛÛÛe[0m 919 Carlaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ244,255,201ÿÿ e[38;2;000;123;167mÛÛÛe[0m 969 Celadon Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ0,123,167ÿÿ e[38;2;073;073;073mÛÛÛe[0m 1019 Charcoal 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ73,73,73ÿÿ
@: e[38;2;168;115;011mÛÛÛe[0m 920 Carley's Roseÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ168,115,11ÿÿ e[38;2;047;132;124mÛÛÛe[0m 970 Celadon Greenÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ47,132,124ÿÿ e[38;2;075;073;073mÛÛÛe[0m 1020 Charcoal 4ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ75,73,73ÿÿ
@: e[38;2;100;000;025mÛÛÛe[0m 921 Carmineÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ100,0,25ÿÿ e[38;2;176;236;175mÛÛÛe[0m 971 Celedon 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ176,236,175ÿÿ e[38;2;076;070;070mÛÛÛe[0m 1021 Charcoal 5ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ76,70,70ÿÿ
@: e[38;2;235;076;066mÛÛÛe[0m 922 Carmine Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ235,76,66ÿÿ e[38;2;181;189;081mÛÛÛe[0m 972 Celeryÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ181,189,81ÿÿ e[38;2;061;068;080mÛÛÛe[0m 1022 Charcoal Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ61,68,80ÿÿ
@: e[38;2;222;086;061mÛÛÛe[0m 923 Carmine Pink 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ222,86,61ÿÿ e[38;2;188;188;074mÛÛÛe[0m 973 Celery 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ188,188,74ÿÿ e[38;2;238;148;137mÛÛÛe[0m 1023 Charismaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ238,148,137ÿÿ
@: e[38;2;232;090;064mÛÛÛe[0m 924 Carmine Pink 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ232,90,64ÿÿ e[38;2;191;191;063mÛÛÛe[0m 974 Celery 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ191,191,63ÿÿ e[38;2;242;150;136mÛÛÛe[0m 1024 Charisma 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ242,150,136ÿÿ
@: e[38;2;128;021;034mÛÛÛe[0m 925 Carmine Redÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ128,21,34ÿÿ e[38;2;224;224;191mÛÛÛe[0m 975 Celery 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ224,224,191ÿÿ e[38;2;230;143;172mÛÛÛe[0m 1025 Charm Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ230,143,172ÿÿ
@: e[38;2;143;017;034mÛÛÛe[0m 926 Carmine Red 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ143,17,34ÿÿ e[38;2;153;255;255mÛÛÛe[0m 976 Celesteÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ153,255,255ÿÿ e[38;2;238;212;211mÛÛÛe[0m 1026 Charming Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ238,212,211ÿÿ
@: e[38;2;150;000;024mÛÛÛe[0m 927 Carmine Red 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ150,0,24ÿÿ e[38;2;178;255;255mÛÛÛe[0m 977 Celeste 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ178,255,255ÿÿ e[38;2;095;255;000mÛÛÛe[0m 1027 Chartreuseÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ95,255,0ÿÿ
@: e[38;2;163;011;033mÛÛÛe[0m 928 Carmine Red 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ163,11,33ÿÿ e[38;2;212;212;196mÛÛÛe[0m 978 Celeste 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ212,212,196ÿÿ e[38;2;067;124;023mÛÛÛe[0m 1028 Chartreuse 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ67,124,23ÿÿ
@: e[38;2;255;000;056mÛÛÛe[0m 929 Carmine Red 4ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ255,0,56ÿÿ e[38;2;157;176;210mÛÛÛe[0m 979 Celestialÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ157,176,210ÿÿ e[38;2;095;135;000mÛÛÛe[0m 1029 Chartreuse 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ95,135,0ÿÿ
@: e[38;2;087;053;038mÛÛÛe[0m 930 Carnaby Tanÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ87,53,38ÿÿ e[38;2;073;151;208mÛÛÛe[0m 980 Celestial Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ73,151,208ÿÿ e[38;2;069;139;000mÛÛÛe[0m 1030 Chartreuse 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ69,139,0ÿÿ
@: e[38;2;090;054;032mÛÛÛe[0m 931 Carnaby Tan 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ90,54,32ÿÿ e[38;2;046;074;101mÛÛÛe[0m 981 Celloÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ46,74,101ÿÿ e[38;2;095;175;000mÛÛÛe[0m 1031 Chartreuse 4ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ95,175,0ÿÿ
@: e[38;2;095;056;030mÛÛÛe[0m 932 Carnaby Tan 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ95,56,30ÿÿ e[38;2;051;079;094mÛÛÛe[0m 982 Cello 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ51,79,94ÿÿ e[38;2;108;196;023mÛÛÛe[0m 1032 Chartreuse 5ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ108,196,23ÿÿ
@: e[38;2;098;060;033mÛÛÛe[0m 933 Carnaby Tan 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ98,60,33ÿÿ e[38;2;059;082;109mÛÛÛe[0m 983 Cello 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ59,82,109ÿÿ e[38;2;102;205;000mÛÛÛe[0m 1033 Chartreuse 6ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ102,205,0ÿÿ
@: e[38;2;243;102;098mÛÛÛe[0m 934 Carnationÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ243,102,98ÿÿ e[38;2;046;063;057mÛÛÛe[0m 984 Celticÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ46,63,57ÿÿ e[38;2;095;215;000mÛÛÛe[0m 1034 Chartreuse 7ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ95,215,0ÿÿ
@: e[38;2;249;093;100mÛÛÛe[0m 935 Carnation 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ249,93,100ÿÿ e[38;2;055;064;060mÛÛÛe[0m 985 Celtic 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ55,64,60ÿÿ e[38;2;118;238;000mÛÛÛe[0m 1035 Chartreuse 8ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ118,238,0ÿÿ
@: e[38;2;255;166;201mÛÛÛe[0m 936 Carnation Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿ255,166,201ÿÿ e[38;2;167;204;000mÛÛÛe[0m 986 Center Stageÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ167,204,0ÿÿ e[38;2;127;255;000mÛÛÛe[0m 1036 Chartreuse 9ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ127,255,0ÿÿ
@: e[38;2;100;080;081mÛÛÛe[0m 937 Carnelianÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ100,80,81ÿÿ e[38;2;209;167;087mÛÛÛe[0m 987 Ceremonial Goldÿÿÿÿÿÿÿÿÿÿÿÿÿÿ209,167,87ÿÿ e[38;2;120;253;033mÛÛÛe[0m 1037 Chartreuse 10ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ120,253,33ÿÿ
@: e[38;2;179;027;027mÛÛÛe[0m 938 Carnelian 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ179,27,27ÿÿ e[38;2;160;042;077mÛÛÛe[0m 988 Ceriseÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ160,42,77ÿÿ e[38;2;127;232;023mÛÛÛe[0m 1038 Chartreuse 11ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ127,232,23ÿÿ
@: e[38;2;237;140;030mÛÛÛe[0m 939 Carnivalÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ237,140,30ÿÿ e[38;2;216;051;135mÛÛÛe[0m 989 Cerise 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ216,51,135ÿÿ e[38;2;129;255;000mÛÛÛe[0m 1039 Chartreuse 12ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ129,255,0ÿÿ
@: e[38;2;153;186;221mÛÛÛe[0m 940 Carolina Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ153,186,221ÿÿ e[38;2;236;059;131mÛÛÛe[0m 990 Cerise Pinkÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ236,59,131ÿÿ e[38;2;135;215;000mÛÛÛe[0m 1040 Chartreuse 13ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ135,215,0ÿÿ
@: e[38;2;111;066;061mÛÛÛe[0m 941 Carriage Doorÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ111,66,61ÿÿ e[38;2;244;192;161mÛÛÛe[0m 991 Certain Peachÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ244,192,161ÿÿ e[38;2;135;255;000mÛÛÛe[0m 1041 Chartreuse 14ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ135,255,0ÿÿ
@: e[38;2;237;145;033mÛÛÛe[0m 942 Carrot Orangeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ237,145,33ÿÿ e[38;2;002;104;168mÛÛÛe[0m 992 Ceruleanÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ2,104,168ÿÿ e[38;2;136;255;034mÛÛÛe[0m 1042 Chartreuse 15ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ136,255,34ÿÿ
@: e[38;2;239;152;026mÛÛÛe[0m 943 Carrot Orange 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿ239,152,26ÿÿ e[38;2;020;125;180mÛÛÛe[0m 993 Cerulean 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ20,125,180ÿÿ e[38;2;137;255;011mÛÛÛe[0m 1043 Chartreuse 16ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ137,255,11ÿÿ
@: e[38;2;236;225;208mÛÛÛe[0m 944 Casa Blancaÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ236,225,208ÿÿ e[38;2;031;076;181mÛÛÛe[0m 994 Cerulean Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ31,76,181ÿÿ e[38;2;138;251;023mÛÛÛe[0m 1044 Chartreuse 17ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ138,251,23ÿÿ
@: e[38;2;060;083;093mÛÛÛe[0m 945 Casalÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ60,83,93ÿÿ e[38;2;042;080;200mÛÛÛe[0m 995 Cerulean Blue 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ42,80,200ÿÿ e[38;2;143;242;022mÛÛÛe[0m 1045 Chartreuse 18ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ143,242,22ÿÿ
@: e[38;2;062;091;098mÛÛÛe[0m 946 Casal 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ62,91,98ÿÿ e[38;2;042;082;190mÛÛÛe[0m 996 Cerulean Blue 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ42,82,190ÿÿ e[38;2;218;255;024mÛÛÛe[0m 1046 Chartreuse Yellowÿÿÿÿÿÿÿÿÿÿÿÿ218,255,24ÿÿ
@: e[38;2;060;077;078mÛÛÛe[0m 947 Cascadeÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ60,77,78ÿÿ e[38;2;109;155;195mÛÛÛe[0m 997 Cerulean Frostÿÿÿÿÿÿÿÿÿÿÿÿÿÿ109,155,195ÿÿ e[38;2;220;234;017mÛÛÛe[0m 1047 Chartreuse Yellow 1ÿÿÿÿÿÿÿÿÿÿ220,234,17ÿÿ
@: e[38;2;129;168;154mÛÛÛe[0m 948 Cascade 1ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ129,168,154ÿÿ e[38;2;000;122;165mÛÛÛe[0m 998 CG Blueÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ0,122,165ÿÿ e[38;2;223;255;000mÛÛÛe[0m 1048 Chartreuse Yellow 2ÿÿÿÿÿÿÿÿÿÿÿ223,255,0ÿÿ
@: e[38;2;139;169;162mÛÛÛe[0m 949 Cascade 2ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ139,169,162ÿÿ e[38;2;224;060;049mÛÛÛe[0m 999 CG Redÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ224,60,49ÿÿ e[38;2;224;224;000mÛÛÛe[0m 1049 Chartreuse Yellow 3ÿÿÿÿÿÿÿÿÿÿÿ224,224,0ÿÿ
@: e[38;2;142;163;153mÛÛÛe[0m 950 Cascade 3ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ142,163,153ÿÿ e[38;2;255;231;221mÛÛÛe[0m 1000 Chablisÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ255,231,221ÿÿ e[38;2;090;072;063mÛÛÛe[0m 1050 Chateau Brownÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ90,72,63ÿÿ
Re: Can I get access to an ascii character not in the standard set?
If nothing else works, you could zip an image and attach it to your post.
(It might also be possible to attach an image without zipping it, but i haven't tested that.)
penpen
(It might also be possible to attach an image without zipping it, but i haven't tested that.)
penpen
Re: Can I get access to an ascii character not in the standard set?
To post and show an image here just download your image in a public shared images service, like https://imgur.com/, and then include here the BBC link between [img] tags...
Antonio
Antonio
Re: Can I get access to an ascii character not in the standard set?
A 169kb zipped file brings up the "file too large" box. Same with 112kb zipped file.
99kb attached okay.
The attached image file does not show well because it had to be reduced in size
to pass what seems to be a 100kb limit.
And here's a linked larger image file at tinypic dot com:
update: The attachment was for testing and is worthless for viewing. I deleted it.
99kb attached okay.
The attached image file does not show well because it had to be reduced in size
to pass what seems to be a 100kb limit.
And here's a linked larger image file at tinypic dot com:
update: The attachment was for testing and is worthless for viewing. I deleted it.
Last edited by Jer on 12 Nov 2018 13:05, edited 1 time in total.
Re: Can I get access to an ascii character not in the standard set?
I just reread this whole thread and I am lost a little. I am afraid I don't understand the core point of this topic. These are my thoughs:
Antonio
- All the code-page changes and UTF-8, UTF-16, etc. file encodings stuff is used when a program wants to display a non-Ascii character on the screen. Just to be clear: an Ascii character is one in the 0-255 range that is correctly displayed in all code pages (although some code pages show some characters beyond 127 as question-marks). Do you want to DISPLAY non-Ascii characters on the screen?
- As I understand it, you just want to define a string that may contain quotes in a way that it don't cause problems when it appears in a Batch file. Am I right? Of course, the string must be correctly displayed (with quotes) when it is output to a text file.
- The final product of your Batch file is a text file that have ANSI escape sequences embedded so it display colors when it is TYPEd to the screen in ANSI compatible environments, like Windows 10 or an ANSI driver for other windows versions. Am I right?
Antonio
Re: Can I get access to an ascii character not in the standard set?
The scope of my project is within the PC environments I have, Windows 7, or Windows 10 where ansi sequence codes are inserted in text files for color.
The font should be raster and code page is 437. The project is an experiment that some may find interesting to try out after browsing the samples.
The original plan was to see if non-hybrid batch code could handle Ascii characters inside a box. I began the project after reading a thread that included
aGerman’s boxed letters example. Among the many tool options: text in cells, inserting vertical lines of an Ascii character, choice of any fill character for
a primary and secondary borders, patterns of any Ascii characters, checkered patterns.
The tool handles all 256 Ascii characters except those that can’t be typed out, #7, 8, 9, 10, 13, 26 and 27. It became obvious that text alignment and
other manipulations in the process between input and output required workaround solutions for the special characters, “ ! < > & etc.
Substituting the double quote with code page 65001 quarternote character solved many of my text editing issues. Things were going well until CHCP
suddenly started changing the font.
To your points, only Ascii characters from code page 437 are displayed on the screen. These characters can be within the text or composed horizontal
and vertical lines, and be border characters as well as text area fillers. Characters within the lower and upper ranges of the Ascii table are included
and should display correctly with a raster font. These characters can be in an existing file or entered from the command-line with codes described below.
The text source can be both a file and text entered from the command-line with the options to pre-pend, append, and join files and overlay.
Point #2: I want to define a string that may contain quotes or other special characters, or other characters in the lower and upper Ascii code range,
and display these characters correctly, positioned and bordered, from a file with the TYPE command. Temporary replacement with Ascii characters
in code page 437 is currently working. I am using Ascii #8 to replace the quote, then converting it back just before echoing to file. A substitution gimmick
I use is to accept character codes from the command-line within square brackets:
bdrs {# Hello [4] world!_
which is interpreted as “{#” everything following is text for display or codes to be interpreted into characters, inside a border. “[4]” represents the diamond
character. Each “_” represents an added space although there is a left and right margins option and a text width option that overrides the actual length, i.e., /L50
Point #3: There are several final products. Bdrs.bat typically produces bordered content from the command-line or a text file, while it does more and
does not have to include borders, and the output can be input for the colors-in-text-file tool and bdrs.bat itself.
Columns batch file (un-named as of yet) reads your file and reformats the text into the number of columns you specify and with your assigned line length.
Output can be input to bdrs.bat and the colors tool. Options include a line-end tag (\n) and control of division space and division characters.
Colors-to-text batch file (also to be named) adds ansi sequence codes to your text file, but also has the capabilities to make a border and add margins to
facilitate the added border. You can also designate the source file as a blank file of certain dimensions, i.e., {60x15 which is a text area (within the border)
of 60 characters wide, 15 lines in height; the text area can be character-filled. This tool can interpret the boundaries of an existing border, or you can
assign upper and lower boundaries, or let the code interpret border boundaries for a non-bordered source file. Windows 10 is the required environment.
There may be issues with ANSI drivers for other Windows versions because I have chosen to include all Ascii codes. Available Ascii codes and characters
can be viewed in bdrs.bat, and if no lines are skewed, it could be that your ANSI driver will work with all Ascii chars, however I am not knowledgeable
about whether or not all colors can be viewed in the cmd window via ANSI driver and older Windows versions.
The last batch file, cview.bat is for viewing samples of colors, with emphasis on 7,000+ color names, names which can be used as one of the entry forms in the
colors-to-text tool. As stated previously, all colors can be viewed with cview.bat.
In summary, I needed character replacement to avoid the code halting during text edits. Code page 65001 and quarternote was abandoned and non-used Ascii
characters are now the replacement characters.
Antonio, without your SET /P code block for reading in text that may contain any Ascii character, I would not have begun the project.
Currently not much is broken, just tons of code to try to reduce.
Here are a few samples. The addition of color name entries and RGB codes entries has not been done for colors-to-text tool; it is being worked on.
Below you see results from the 256-color palette version.
Jerry
https://photos.google.com/photo/AF1QipM ... xkA3-Vl9JR
The font should be raster and code page is 437. The project is an experiment that some may find interesting to try out after browsing the samples.
The original plan was to see if non-hybrid batch code could handle Ascii characters inside a box. I began the project after reading a thread that included
aGerman’s boxed letters example. Among the many tool options: text in cells, inserting vertical lines of an Ascii character, choice of any fill character for
a primary and secondary borders, patterns of any Ascii characters, checkered patterns.
The tool handles all 256 Ascii characters except those that can’t be typed out, #7, 8, 9, 10, 13, 26 and 27. It became obvious that text alignment and
other manipulations in the process between input and output required workaround solutions for the special characters, “ ! < > & etc.
Substituting the double quote with code page 65001 quarternote character solved many of my text editing issues. Things were going well until CHCP
suddenly started changing the font.
To your points, only Ascii characters from code page 437 are displayed on the screen. These characters can be within the text or composed horizontal
and vertical lines, and be border characters as well as text area fillers. Characters within the lower and upper ranges of the Ascii table are included
and should display correctly with a raster font. These characters can be in an existing file or entered from the command-line with codes described below.
The text source can be both a file and text entered from the command-line with the options to pre-pend, append, and join files and overlay.
Point #2: I want to define a string that may contain quotes or other special characters, or other characters in the lower and upper Ascii code range,
and display these characters correctly, positioned and bordered, from a file with the TYPE command. Temporary replacement with Ascii characters
in code page 437 is currently working. I am using Ascii #8 to replace the quote, then converting it back just before echoing to file. A substitution gimmick
I use is to accept character codes from the command-line within square brackets:
bdrs {# Hello [4] world!_
which is interpreted as “{#” everything following is text for display or codes to be interpreted into characters, inside a border. “[4]” represents the diamond
character. Each “_” represents an added space although there is a left and right margins option and a text width option that overrides the actual length, i.e., /L50
Point #3: There are several final products. Bdrs.bat typically produces bordered content from the command-line or a text file, while it does more and
does not have to include borders, and the output can be input for the colors-in-text-file tool and bdrs.bat itself.
Columns batch file (un-named as of yet) reads your file and reformats the text into the number of columns you specify and with your assigned line length.
Output can be input to bdrs.bat and the colors tool. Options include a line-end tag (\n) and control of division space and division characters.
Colors-to-text batch file (also to be named) adds ansi sequence codes to your text file, but also has the capabilities to make a border and add margins to
facilitate the added border. You can also designate the source file as a blank file of certain dimensions, i.e., {60x15 which is a text area (within the border)
of 60 characters wide, 15 lines in height; the text area can be character-filled. This tool can interpret the boundaries of an existing border, or you can
assign upper and lower boundaries, or let the code interpret border boundaries for a non-bordered source file. Windows 10 is the required environment.
There may be issues with ANSI drivers for other Windows versions because I have chosen to include all Ascii codes. Available Ascii codes and characters
can be viewed in bdrs.bat, and if no lines are skewed, it could be that your ANSI driver will work with all Ascii chars, however I am not knowledgeable
about whether or not all colors can be viewed in the cmd window via ANSI driver and older Windows versions.
The last batch file, cview.bat is for viewing samples of colors, with emphasis on 7,000+ color names, names which can be used as one of the entry forms in the
colors-to-text tool. As stated previously, all colors can be viewed with cview.bat.
In summary, I needed character replacement to avoid the code halting during text edits. Code page 65001 and quarternote was abandoned and non-used Ascii
characters are now the replacement characters.
Antonio, without your SET /P code block for reading in text that may contain any Ascii character, I would not have begun the project.
Currently not much is broken, just tons of code to try to reduce.
Here are a few samples. The addition of color name entries and RGB codes entries has not been done for colors-to-text tool; it is being worked on.
Below you see results from the 256-color palette version.
Jerry
https://photos.google.com/photo/AF1QipM ... xkA3-Vl9JR
Last edited by Jer on 25 Nov 2019 15:40, edited 1 time in total.
Re: Can I get access to an ascii character not in the standard set?
Err, no... It is not obvious for me... For that reason I asked you to include a simple example that show the problem...
Code: Select all
@echo off
setlocal EnableDelayedExpansion
set "wide=70"
set "SP="
for /L %%i in (1,1,%wide%) do set "SP=!SP! "
cls
:loop
set "line="
set /P "line=>"
if not defined line goto :EOF
call :StrLen line len=
set /A "fill=wide-len, left=fill/2, right=fill-left"
echo ³!SP:~0,%left%!!line!!SP:~0,%right%!³
goto loop
:StrLen var len=
set "str=0!%~1!"
set "%2=0"
for /L %%a in (8,-1,0) do (
set /A "newLen=%2+(1<<%%a)"
for %%b in (!newLen!) do if "!str:~%%b,1!" neq "" set "%2=%%b"
)
exit /B
Code: Select all
>Text centered in 70 columns
│ Text centered in 70 columns │
>"Say it with colors!"
│ "Say it with colors!" │
>Special characters: " ! < > & | % etc.
│ Special characters: " ! < > & | % etc. │
>
Re: Can I get access to an ascii character not in the standard set?
This batch code can show the double quote causing an error when it
is not replaced by another character.
is not replaced by another character.
Code: Select all
@echo off
setlocal
rem test command-line arguments: x {a quote " and exclamation mark !
set "args=%*"
If "%args%" equ "" echo no args entered & exit /b
rem comment following line to demo code failure
set "args=%args:"=Û%"
If "%args:{=%" neq "%args%" (echo curly brace found in %args%) Else echo curly brace not found in %args%
endlocal
Re: Can I get access to an ascii character not in the standard set?
Actually ASCII only defines codes 0-127. Codes 128-255 are technically not ASCII, and their meaning is absolutely dependent on the code page. There is no "correct" display across all code pages.Aacini wrote: ↑09 Nov 2018 07:51
- All the code-page changes and UTF-8, UTF-16, etc. file encodings stuff is used when a program wants to display a non-Ascii character on the screen. Just to be clear: an Ascii character is one in the 0-255 range that is correctly displayed in all code pages (although some code pages show some characters beyond 127 as question-marks). Do you want to DISPLAY non-Ascii characters on the screen?
Dave Benham
Re: Can I get access to an ascii character not in the standard set?
Jerry
Unbalanced quotation marks will certainly cause problems because they change the way the command lines are tokenized.
Enable delayed variable expansion after you assigned the args variable and try again.
Steffen
Unbalanced quotation marks will certainly cause problems because they change the way the command lines are tokenized.
Enable delayed variable expansion after you assigned the args variable and try again.
Code: Select all
@echo off
setlocal
rem test command-line arguments: x {a quote " and exclamation mark !
set "args=%*"
setlocal EnableDelayedExpansion
If "!args!" equ "" echo no args entered & exit /b
rem comment following line to demo code failure
:: set "args=%args:"=Û%"
If "!args:{=!" neq "!args!" (echo curly brace found in !args!) Else echo curly brace not found in !args!
endlocal
endlocal