HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/slrn/slang/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");