> From [EMAIL PROTECTED] Fri Jan  5 17:53:07 2001
> To: [EMAIL PROTECTED]
> Subject: LPRng: pjl_ready_msg confusion
> From: Jason L Tibbitts III <[EMAIL PROTECTED]>
> Date: 05 Jan 2001 18:53:21 -0600
>
> In ifhp 3.4.4, set pjl_ready_msg to "Printing: \%s{n} \%s{J}" and
> pjl_display_size to 32 for my HP 8100DN.  I figured this would put the
> obvious up on the screen, as it does with another host running a different
> printer and older (slightly hacked[1]) version of ifhp.  Instead, for the
> duration of the job I get just the user name in the display while the job
> is printing, then at the end I get the expected string for just a second
> before "READY" reappears.
>
> I suppose that RDYMSG is supposed to control what's printed while the
> printer is idle, but something (probably the pagecount code) is erasing
> this.  But what controls the display while the job is printing?  And how
> can I get a message to stay on the screen while the printer is idle?
>
> Thanks!
>
> 1) My slightly hacked version puts "Printing: user" while the job is
>    printing and "Last Job: user" while the printer is idle.  I did this a
>    very long time ago, and that patch doesn't match up with current
>    versions.
>
>  - J<

It turns out that there are TWO (2) places where the DISPLAY is set.
Try the following patch and see if this works:


*** ifhp.c      2000/12/25 01:53:06     1.74
--- ifhp.c      2001/01/07 18:40:41
***************
*** 2465,2471 ****
  
  void Pjl_job()
  {
!       char *s, buffer[SMALLBUFFER];
        int n = 0, len;
  
        if( (s = Find_value(&Model,"pjl_job",Value_sep )) ){
--- 2465,2471 ----
  
  void Pjl_job()
  {
!       char *s, buffer[SMALLBUFFER], name[SMALLBUFFER];
        int n = 0, len;
  
        if( (s = Find_value(&Model,"pjl_job",Value_sep )) ){
***************
*** 2483,2490 ****
        SNPRINTF(buffer, sizeof(buffer))  Jobstart_str, Jobname );
  
        if( Pjl_console ){
!               DEBUG2("Pjl_job: pjl_console '%d'", Pjl_console );
!               s = Loweropts['n'-'a'];
                if( !s ) s = Upperopts['J'-'A'];
                if( !s ) s = "????";
                if( s ){
--- 2483,2501 ----
        SNPRINTF(buffer, sizeof(buffer))  Jobstart_str, Jobname );
  
        if( Pjl_console ){
!               DEBUG2("Pjl_job: pjl_console '%d', msg '%s'",
!                       Pjl_console, Pjl_ready_msg );
!               s = 0;
!               if( Pjl_ready_msg ){
!                       DEBUG2("Pjl_job: pjl_ready_msg '%s'", Pjl_ready_msg);
!                       s = Fix_option_str( Pjl_ready_msg, 0, 1, 1);
!                       if( s ){
!                               SNPRINTF(name,sizeof(name))  "%s", s);
!                               free(s); s = 0;
!                               s = name;
!                       }
!               }
!               if( !s ) s = Loweropts['n'-'a'];
                if( !s ) s = Upperopts['J'-'A'];
                if( !s ) s = "????";
                if( s ){

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to