Changeset 9116936


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
b8742ba
Parents:
fa23002
git-author:
David Benjamin <davidben@mit.edu> (08/01/10 15:03:24)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Draw ~s in empty viewwin lines, to mimic less
File:
1 edited

Legend:

Unmodified
Added
Removed
  • viewwin.c

    rfa23002 r9116936  
    33
    44#define BOTTOM_OFFSET 1
     5#define EMPTY_INDICATOR "~"
    56
    67static void owl_viewwin_redraw(owl_window *w, WINDOW *curswin, void *user_data);
     
    8889  owl_viewwin *v = user_data;
    8990  int winlines, wincols;
     91  int y;
    9092
    9193  owl_window_get_position(w, &winlines, &wincols, 0, 0);
     
    101103
    102104  owl_fmtext_curs_waddstr(&fm2, curswin);
     105
     106  /* Fill remaining lines with tildes. */
     107  y = v->textlines - v->topline;
     108  wmove(curswin, y, 0);
     109  for (; y < winlines-BOTTOM_OFFSET; y++) {
     110    waddstr(curswin, EMPTY_INDICATOR);
     111    waddstr(curswin, "\n");
     112  }
    103113
    104114  /* print the message at the bottom */
Note: See TracChangeset for help on using the changeset viewer.