Slimelite BBS

centre.lha

Back to batch

Centre strings on a line

Size
1.2K (1,275 bytes)
Added
2026-11-20 17:28
Downloads
1
Long Description
Want to centre strings in text files or from CLI? But you don't want to have to count characters, then divide by 2, then press space an exact number of times, ooops, did you press it once too often? Start again ... This is where 'Centre' comes in! 'Centre' is like a basic version of Echo. Whatever you type in as an argument is output to the CLI or (via redirection) to a file. However, it is centred on the line first. Any lines of longer than 77 characters will be cut down to this number. If you wish to use redirection, do no use it in the middle of a quoted string! ie Centre "Hello >RAM:Bob Bob!" will not work as planned! Catch ya later ... Kev