Subj : repeat char @-code? To : mark lewis From : Digital Man Date : Fri Oct 20 2023 20:19:52 Re: repeat char @-code? By: mark lewis to digital man on Fri Aug 16 2019 09:18 am > is there an @-code i can use to have some text repeated X times or maybe > even to repeat to the terminal width or repeat to the terminal width minus X > columns? > > maybe something like @RPT#horizline-TWIDTH@ to repeat the horizontal line > character to the terminal width where horizline is the actual character to > be used... or @RPT#=-L40@ to repeat the '=' from the left 40 times or > @RPT#=-R40@ to do the same except from the right... > > i've used "#" intead of ":" for the length specifiers so we can use format > modifiers... > > i'm just tossing this out there because i'm trying to dress up my message > headers without hard coding dividing and framing lines to a certain width > and looking unfinished when used on wide terminals or wrapping on narrow > terminals... How about just: @fill:@ which would fill the rest of the current line with the specified char? digital man Synchronet "Real Fact" #23: The third ever Synchronet BBS was The Beast's Domain (sysop: King Drafus). Norco, CA WX: 66.3øF, 89.0% humidity, 2 mph NNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .