Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

box(3cur)

Name

box − draw box

Syntax

#include <cursesX.h>

int box(win, vert, hor)
WINDOW *win;
chtype vert, hor;

Description

The box routine draws a box around the edge of the window. The arguments vert and hor are the vertical and horizontal characters the box is to be drawn with.

If vert and hor are 0 or unspecified, then default characters are used.

If scrolling is disabled and the window encompasses the bottom right corner of the screen, all corners are left blank to avoid an illegal scroll. 

Return Values

The box function returns OK on success and ERR on error.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026