# $line-scheme(5)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

$line-scheme - Set the current line color scheme

## SYNOPSIS

$line-scheme schemeNum; Default is `-1`

## DESCRIPTION

$line-scheme sets the color scheme to be used for the current line of the current window. The given schemeNum can be any scheme number previously defined by the function add-color-scheme(2).

A line's $line-scheme setting is removed by setting the variable to -1.

A $line-scheme setting takes precedence over the buffer's color scheme ( $buffer-scheme(5)) and the buffer's hilighting scheme ( $buffer-hilight(5)).

## EXAMPLE

c-hash-eval(3) greys out lines of text by doing:

    set-variable $line-scheme %lblack

The lines are rest by doing

    set-variable $line-scheme -1

The gdb(3) interface hilights the current line of source by doing:

    set-variable $line-scheme %yellow-lblack

## NOTES

Due to line storage restrictions, only 15 different color schemes can be used in a buffer at any one time. When the 16th color scheme is used it replaces the first color scheme, all lines using the first color scheme will be colored using the new color scheme.

## SEE ALSO

add-color-scheme(2), c-hash-eval(3), $buffer-hilight(5), $buffer-scheme(5), $line-flags(5), $mode-line-scheme(5), $scroll-bar-scheme(5), $system(5).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>