~ubuntu-branches/ubuntu/wily/octave-miscellaneous/wily

« back to all changes in this revision

Viewing changes to src/waitbar.cc

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Weber
  • Date: 2008-11-30 23:39:44 UTC
  • mto: (5.1.1 experimental) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20081130233944-e2o8pmafecjq09me
Tags: upstream-1.0.7
ImportĀ upstreamĀ versionĀ 1.0.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
146
146
          char* buf_ptr = term_buffer;
147
147
          begin_rv      = tgetstr("so", &buf_ptr);
148
148
          end_rv        = tgetstr("se", &buf_ptr);
149
 
          brvlen = 0;   buf_ptr = begin_rv;
150
 
          while(buf_ptr[++brvlen]);
151
 
          ervlen = 0;   buf_ptr = end_rv;
152
 
          while(buf_ptr[++ervlen]);
153
149
          
 
150
          // Display a progress bar, but only if the current terminal has a
 
151
          // standout mode
 
152
          if (begin_rv && end_rv)
 
153
            {
 
154
              brvlen = 0;       
 
155
              buf_ptr = begin_rv;
 
156
              while(buf_ptr[++brvlen]);
 
157
              ervlen = 0;       buf_ptr = end_rv;
 
158
              while(buf_ptr[++ervlen]);
 
159
            }
 
160
                  
154
161
          // initialize print buffer
155
162
          for(i=0; i<BUF_SIZE; ++i)
156
163
            print_buf[i]        = ' ';