Yes, I was referring to alternate data streams.
By deleting the batch file you have reset.
At least I think that is where the problem may be.
The "space" key no longer worked.
Search found 941 matches
- 26 Apr 2023 13:30
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2761
- 26 Apr 2023 05:03
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2761
Re: Stacker, A batch interpretation of the game.
I tried to delete the batch file and now it started working again.
There must be a bug maybe on stream management.
There must be a bug maybe on stream management.
- 26 Apr 2023 04:15
- Forum: DOS Batch Forum
- Topic: Stacker, A batch interpretation of the game.
- Replies: 8
- Views: 2761
Re: Stacker, A batch interpretation of the game.
Today I relaunched the game but it doesn't work anymore.
I practically press the space and it does nothing.
If I press tab instead it exits.
I have it on the desktop, I saw that it creates a file on the desktop.
I practically press the space and it does nothing.
If I press tab instead it exits.
I have it on the desktop, I saw that it creates a file on the desktop.
- 25 Apr 2023 21:32
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
This is the cat
look good.
I'm reading the code but I don't understand how you did the function that calculates the distance between colors.
Can you explain?
look good.
I'm reading the code but I don't understand how you did the function that calculates the distance between colors.
Can you explain?
- 25 Apr 2023 06:57
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
the cat without grays is terrible. With grays I think it will be much better. @echo off & setlocal enableDelayedExpansion mode 103,98 chcp 65001 cls for /F %%a in ('echo prompt $E^| cmd') do set "ESC=%%a" set hex[0]=BCBDADD0D1C1CFD0C0CECFBFD5D6C6D7D8C8D8D9C9DADBCBDBDECDDFE2D1E0E2D4DFE1D3E0E4D6E5E9DB...
- 25 Apr 2023 06:38
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
Could it work like this? pseudocode: set /a "index_Red=(%1-35)/40+((%1-48)>>8)-((%1-75)>>8)" set /a "index_Green=(%2-35)/40+((%2-48)>>8)-((%2-75)>>8)" set /a "index_Blue=(%3-35)/40+((%3-48)>>8)-((%3-75)>>8)" set /a "index_gray=0xE8+(((0x3FF*((((%1)+(%2)+(%3)+297)&0x400)>>10))|(((%1)+(%2)+(%3)+297)&0...
- 25 Apr 2023 06:22
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
I succeeded (%1-35)/40+((%1-48)>>8)-((%1-75)>>8) This work The execution time is the same , your formula is very good choice. Final formula : set /A "%4=(((%1)-35)/40+((%1-48)>>8)-((%1-75)>>8))*36 + (((%2)-35)/40+((%2-48)>>8)-((%2-75)>>8))*6 + (((%3)-35)/40+((%3-48)>>8)-((%3-75)>>8)) + 16" To includ...
- 25 Apr 2023 05:49
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
There is an error on the value 74, can you correct?, I failed.
Your formula is shorter and I prefer it to mine.
Your formula is shorter and I prefer it to mine.
- 24 Apr 2023 12:40
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
This is last
Code: Select all
set /a "%4=((%1-85>>31)*(8-%1)+(84-%1>>31)*(35-%1))/40*36 + ((%2-85>>31)*(8-%2)+(84-%2>>31)*(35-%2))/40*6 + ((%3-85>>31)*(8-%3)+(84-%3>>31)*(35-%3))/40 + 16"
- 24 Apr 2023 08:29
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
In the part between 0 and 75 where there are dark hue of colors the error is high. I merged your formula with mine and minimized the error. See if you can do better. Here you can see the difference: @echo off setlocal enableExtensions enableDelayedExpansion rem save in UTF8 chcp 65001 cls for /F %%a...
- 23 Apr 2023 10:42
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
Hi penpen, thanks for your contribution.
I'm seeing your work and I wanted to ask you why you didn't try to minimize the error.
I'm seeing your work and I wanted to ask you why you didn't try to minimize the error.
- 22 Apr 2023 13:46
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
For the moment I stop.
but I already 'in mind how it could continue for example to make 8-bit colors work better you could use special characters ▓ ▒ ░
this is how work the new formula for RED colors
but I already 'in mind how it could continue for example to make 8-bit colors work better you could use special characters ▓ ▒ ░
this is how work the new formula for RED colors
- 22 Apr 2023 13:26
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
I have reduced the error again. Maximum error dropped to 47. I managed to edit the first element separately from the remaining 4. Now the clouds.ppm are seen with a better blue color. set /A "%4=( ( (-((%1-85)>>31))*(%1-5) + (1+( (%1-85) >> 31) )*(256*%1/(256-22)-42) ) *6/256)*36+ ( ( (-((%2-85)>>31...
- 22 Apr 2023 09:35
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
new formula. set /A "%4=((255*%1/(255-20)-40)*6/256)*36+((256*%2/(256-20)-40)*6/256)*6+((256*%3/(256-20)-40)*6/256)+16" I managed to compress the colors, the bands, I did some tests but I'm not satisfied even. Now I have to calculate the maximum absolute error to understand why it's still not good h...
- 22 Apr 2023 07:41
- Forum: DOS Batch Forum
- Topic: 256 colors in virtual terminal escape sequence
- Replies: 41
- Views: 45368
Re: 256 colors in virtual terminal escape sequence
It's hard to decide which is the best. However I made a small change to fix the first color. You have to put 32 instead of 30. I also calculated the errors on the other colors and it is not very good . The formula needs to be changed further. :to256_2 R G B return var set /A "%4=((%1-32)*6/256)*36+(...