~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to alpine/help.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2008-09-23 12:17:56 UTC
  • mfrom: (2.1.8 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080923121756-6u4x8bwq89qlzt32
Tags: 2.00+dfsg-2
Update to package description: note that Alpine is no longer in
alpha. (Closes: #499640)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#if !defined(lint) && !defined(DOS)
2
 
static char rcsid[] = "$Id: help.c 700 2007-08-30 22:33:35Z hubert@u.washington.edu $";
 
2
static char rcsid[] = "$Id: help.c 1028 2008-04-10 16:50:54Z hubert@u.washington.edu $";
3
3
#endif
4
4
 
5
5
/*
6
6
 * ========================================================================
7
 
 * Copyright 2006-2007 University of Washington
 
7
 * Copyright 2006-2008 University of Washington
8
8
 *
9
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
10
 * you may not use this file except in compliance with the License.
34
34
#include "../pith/util.h"
35
35
#include "../pith/detoken.h"
36
36
#include "../pith/list.h"
 
37
#include "../pith/margin.h"
37
38
 
38
39
 
39
40
typedef struct _help_scroll {
159
160
            if(!struncmp(shown_text[0], "<html>", 6))
160
161
              gf_link_filter(gf_html2plain,
161
162
                             gf_html2plain_opt("x-alpine-help:",
162
 
                                               ps_global->ttyo->screen_cols, NULL,
 
163
                                               ps_global->ttyo->screen_cols,
 
164
                                               non_messageview_margin(),
163
165
                                               &handles, NULL, GFHP_LOCAL_HANDLES));
164
166
            else
165
167
              gf_link_filter(gf_wrap, gf_wrap_filter_opt(
460
462
        char *p;
461
463
 
462
464
        gf_link_filter(gf_html2plain,
463
 
                       gf_html2plain_opt(NULL,80,NULL,
 
465
                       gf_html2plain_opt(NULL,80,non_messageview_margin(),
464
466
                                         NULL,NULL,GFHP_STRIPPED));
465
467
        for(i = 1; i <= 5 && text[i]; i++)
466
468
          if(!struncmp(text[i], "<title>", 7)
496
498
{
497
499
    struct help_texts *t;
498
500
    char **h;
 
501
    int we_turned_on = 0;
499
502
 
500
503
    if(open_printer(_("all 150+ pages of help text")) == 0) {
501
 
#ifndef DOS
502
 
        intr_handling_on();
503
 
#endif
 
504
        we_turned_on = intr_handling_on();
504
505
        for(t = h_texts; (h = t->help_text) != NO_HELP; t++) {
505
506
            if(ps_global->intr_pending){
506
507
                q_status_message(SM_ORDER, 3, 3,
511
512
            print_help(h);
512
513
        }
513
514
 
514
 
#ifndef DOS
515
 
        intr_handling_off();
516
 
#endif
 
515
        if(we_turned_on)
 
516
          intr_handling_off();
 
517
 
517
518
        close_printer();
518
519
    }
519
520
}
1305
1306
            gf_link_filter(gf_html2plain,
1306
1307
                           gf_html2plain_opt(NULL,
1307
1308
                                             ps_global->ttyo->screen_cols,
1308
 
                                             NULL, NULL, NULL, GFHP_STRIPPED));
 
1309
                                             non_messageview_margin(), NULL, NULL, GFHP_STRIPPED));
1309
1310
 
1310
1311
            if(!gf_pipe(helper_getc, pc)){
1311
1312
                help_text  = (char *) store->txt;