Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch.nt    |    Fun with Windows NT batch files    |    68,980 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 67,281 of 68,980    |
|    Petr Laznovsky to All    |
|    Re: Level indication bar    |
|    27 Aug 18 15:59:28    |
      From: nobody@nowhere.com              Dne 27.8.2018 v 13:37 Herbert Kleebauer napsal(a):       > On 24.08.2018 22:52, Petr Laznovsky wrote:       >> Need graphically presented signal level in batch file, create a following       test utilizing ANSI       >> sequences. Using ansicon utility for Windows 7 (modification for windows 10       native ANSI possible       >> later). Using random number as an input ror testing purposes, regular       signal source will be used.       >>       >> Any improovement ideas? Better concept?       >       > Have tried it in Win10 without ansicon and had to do a few modifications:       >       >> ansicon.exe -p       >       > removed this line, using the build-in ANSI support       >       >> REM == Fill 'line' variable with 99 spaces ==================       ==================       >> set "line=       >> "       >       > Had to rewrite this line, didn't survive the posting.       > Maybe set it only to 49 spaces (which is ok for the posting)       > and then use       > set line=%line% %line%       >       >       >       >> set "num=%random:~0,2%"       >       > set "num=%random:~-2%"       >       > The first to digits aren't very random, but the last two are.       >       >       >> echo ←[1;1H←[1;%col%m←(0%vol%←[2;1H←(0%vol%←(b←[m       >       > Had to rewrite this line, didn't survive the posting       > and had to use "echo." instead of "echo " or it will       > fail if num is 0       >       > Didn't check the ESC sequences, but after you stop the batch       > the character set is changed.              I noticed this, perform little investigation around, than discovery the       "ESC(0" sequence doing this.       Asking ansicon author got following reply:                     That's how it's supposed to work. Switching to DEC special graphics replaces       the lower case letters       and some other characters with graphic characters. This means, for instance,       you can switch to       graphics, use ASCII letters to draw a box, then switch back.              >       > The display is very slow and I have the feeling, it has a different       > speed for different values.              It could be according the for /l loop performing number of iteration depend on       input number.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca