Keywords: lpg

Next: 8.6.5 Background Character Up: 8.6 Output Previous: 8.6.3 Delete Characters/Lines

## 8.6.4 Boxes and Lines

- `int border(ls, rs, ts, bs, tl, tr, bl, br)`
  `int wborder(win, ls, rs, ts, bs, tl, tr, bl, br)`
  `int box(win, vert, hor)`
  Draw a border around the edges of a window ( or `win`). In the following table you see the characters and their default values when zero in a call to box(...). In the picture you can see the position from the characters in a box.

  Table 8.3: Ncurses - border characters

  Figure 8.2: Ncurses - box characters

- `int vline(ch, n)`
  `int wvline(win, ch, n)`
  `int hline(ch, n)`
  `int whline(win, ch, n)`
  These functions draw a vertical or horizontal line starting at the current cursor position. `ch` is the character to use and `n` is the number of characters to draw. The cursor position is not advanced.