TIP: Click on subject to list as thread! ANSI
echo: commo
to: DAVE WALDRON
from: CHUCK SEYBOLDT
date: 1995-05-21 07:45:00
subject: Function/macro buffer/sav

DW>  Can someone help me write 3 macros (if they are even possible)...
Dave,
        Just about *ANYTHING* is possible with Commo!
DW>  I need to hit F8 and have the buffer-save open.
        This one is straightforward, first a label (has a colon in
it), then an open capture command, then a stop.
 {:nf8} {capt y} {}
DW>  I need to hit F9 and have the buffer close.
        Also straightforward, label, command to close, then stop.
 {:nf9} {capt n} {}
DW>  F10 is a little trickier...
DW>  I need to hit F10 and have the buffer open, then save the text
DW>  that has ALREADY scrolled off the screen, and then close the buffer.
        Yes, this one is a little tricky.  Commo has two filenames
that it uses to save images to.  One is the capture file name and
another one is the screen save name.  The screen save name is what
is used when saving from the scrollback, so it is necessary to
rename the "screen save" to be the same as the "capture save" in
order to get all the stuff in one file.
        The other trick here is use of the {keys } command.  This
stuffs keystrokes into the keyboard buffer then runs them.  The
{keys } command that you see here presses these keys:
        W       to make the lightbar
        ^PgUp   to move the lightbar to the start of scrollback
            to mark the start of file write
        ^PgDn   to move the lightbar to the end of scrollback
            to mark the end of file write
 {:nf0}  {scre n,%_cap}
         {keys 77,84e0,0d,76e0,0d}
         {scro}
         {}
        I tried including the ESC keypress in the {keys } command so
it would automatically exit scrollback, but the file write delay
eats up that keypress ... so you must manually ESCape.
05/20/95   08:49                                        ChuckùS
-*-
 þ JABBER v1.3á1 #á021 þ LAWS: Poor substitutes for personal responsibility.
--- Opus-CBCS 1.7x via O_QWKer 1.1
---------------
* Origin: BlinkLink - Perceiving is believing! 412-766-0732 (1:129/89.0)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.