slk_set Subroutine

Purpose

Sets up soft function-key labels.

Library

Curses Library (libcurses.a)

Syntax

#include <curses.h>

slk_set(LabNum, LabStr, LabFmt)
int  LabNum;
char * LabStr;
int  LabFmt;

Description

The slk_set subroutine sets up each soft function-key label with the appropriate name. These labels appear at the bottom of the screen and give applications, such as editors, a more user-friendly look. Label names are restricted to 8 characters each.

Parameters

Item Description
LabNum Specifies the label number. The value can range from 1 to 8.
LabStr Specifies the string (name) to put on the label. If the string is NULL, the label is blank.
LabFmt Specifies the label alignment. The following values are valid:
0
Left-justified
1
Centered
2
Right-justified

Example

slk_set(2, "Quit", 1);