MOON
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4
System: Linux csr818.wilogic.com 2.6.18-419.el5xen #1 SMP Fri Feb 24 22:50:37 UTC 2017 x86_64
User: digitals (531)
PHP: 5.4.45
Disabled: NONE
Upload Files
File: //usr/local/ssl/share/slrn/macros/ttyprint.sl
% 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");