home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1993 May
/
SIMTEL_0593.ISO
/
msdos
/
sprint
/
stats.spm
< prev
next >
Wrap
Text File
|
1989-07-04
|
3KB
|
70 lines
; HANDY SPRINT STATISTICS
; (c) 1988 Ralph Roberts
; This macro pops up an infobox that gives you NINETEEN useful statistics
; such as how many files you have open--an omission that bugged me first in
; Finalword and, until now, in Sprint. Nothing more irritating then trying to
; open another file and getting a concentration-breaking error message. Now,
; you'll be able to keep track. Other useful stats are given also, such as
; which printer is selected, what the justification is, the indent, tab space,
; and so on. Assign this to a key or key combination--you'll use it often.
; TO INSTALL: To put this macro into Sprint, simply load this file, exactly
; as it is. If there is a ruler at the top, remove it. Then type the ALT-U-M-R
; key combination and this macro will be compiled. Next, use the ALT-U-M-E key
; combination. When it reads, "Enter Macro:" on the status line at the bottom
; of your screen, type in the name "STATS" and hit the <ENTER> key. You
; may then either execute your new macro, or assign it to a key or key
; combination for ease-of-use in the future. Enjoy!
; Express permission for the use and even publication of this macro is here-
; by granted PROVIDED that it is properly attributed to Ralph Roberts and that
; he is mentioned as the author of COMPUTE!'S USING BORLAND'S SPRINT.
; Autographed copies of the above over 100,000-word book are available for
; the retail price of $17.95 (ppd) from the author at P.O. Box 8549, Asheville
; North Carolina 28814.
JustifyIsWhat:
justify
if justify = 0 set QD "Left-Ragged"
if justify = 1 set QD "Left-Block"
if justify = 2 set QD "Center-Ragged"
if justify = 3 set QD "Center-Block"
if justify = 4 set QD "Right-Ragged"
if justify = 5 set QD "Right-Block"
Stats:
set qd printer
if !length qd set qd "DEFAULT"
2-> statline
infobox "Current Stats" {
files "Number of open files\>%d",
bufnum "This is buffer #\>%d",
"Directory\>" cd,
"Printer\>" QD,
justifyiswhat "Justification\>" QD,
"Last search\>" Q2,
"_",
cpi "Characters per inch\>%d",
indent "Indent\>%d",
leftmargin "Left margin (ruler)\>%d",
rightmargin "Right margin (ruler)\>%d",
tabsize "Tab size\>%d",
windows "Windows open\>%d",
wlines "Lines in current window\>%d",
"_",
menudelay "Menu delay (seconds)\>%d",
swapdelay/1000 "Backup (seconds)\>%d",
soundfreq "Bell (Hertz)\>%d",
sounddur "Bell length (millisec.)\>%d",
showkeys "Menu shortcuts\>%[No%:Yes%]",
killswap "Permanent swap file?\>%[Yes%:No%]"
}
message "\n Press any key to end (your screen will"
" be restored)."
key
1-> statline