home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Spezial
/
SPEZIAL2_97.zip
/
SPEZIAL2_97.iso
/
ANWEND
/
ONLINE
/
SLRN0931
/
MACROS
/
TTYPRINT.SL
< prev
next >
Wrap
Text File
|
1997-02-23
|
510b
|
26 lines
% This function prints the currently selected article on a printer attached
% to the terminal. It demonstates the
define tty_print_article ()
{
variable buf;
art_select_article ();
if (get_yes_no_cancel ("Are you sure you want to print article") <= 0)
return;
buf = article_as_string ();
message ("printing...");
update ();
tt_send ("\e[5i");
tt_send (buf);
tt_send ("\e[4i");
message ("printing...done");
}
definekey ("tty_print_article", "^P", "article");