home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 3
/
Merciful_Release_3.bin
/
software
/
b
/
blacksedv1.0.lha
/
BED
/
Rexx
/
AddChars.bed
next >
Wrap
Text File
|
1996-01-28
|
564b
|
46 lines
/*
** $VER: AddChars.bed 1.0 (02.01.96)
**
** Add characters at the start of lines
*/
OPTIONS RESULTS
PARSE ARG ch
IF ch = "" THEN DO
RequestStr PROMPT '"Chars to add?"'
IF RC ~= 0 THEN RETURN
ch = RESULT
END
SetStatusBar "Adding characters..."
GetBlkDims
PARSE VAR RESULT mode . start . end
SetDisplayLock ON
SetBookmark 0
IF mode=ON THEN DO
MarkBlk
Move start 1
num = end-start+1
END; ELSE DO
MoveSOF
num = 0
END
RecordMacro Quiet
MoveSOL
Text '"' || ch || '"'
MoveDown
EndMacro
PlayMacro num
MoveBookmark 0
ClearBookmark 0
SetDisplayLock OFF