home bbs files messages ]

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,280 of 68,980   
   Herbert Kleebauer to Petr Laznovsky   
   Re: Level indication bar   
   27 Aug 18 13:37:53   
   
   From: klee@unibwm.de   
      
   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←   
      
   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.   
      
   The display is very slow and I have the feeling, it has a different   
   speed for different values.   
      
   --- 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