LCD(4) | Device Drivers Manual (luna68k) | LCD(4)

# NAME

`lcd` — front panel LCD display

# SYNOPSIS

`lcd0 at mainbus0`

# DESCRIPTION

The `lcd` driver provides access to the front panel LCD display on LUNA. It is accessed using write(2) to print the characters on the LCD. The device has a physical display area of 16 characters x 2 lines and an internal line buffer of 40 characters x 2 lines.

The following ioctl calls apply to the `lcd` device:

`LCDCLS`
  Clear the LCD screen, restore display area from shift and move the cursor to upper-left position.
`LCDHOME`
  Restore display area from shift and move the cursor to upper-left position.
`LCDMODE` int *
  Specify cursor advance direction and display shift mode.
`LCDDISP` int *
  Control display on/off, cursor on/off, and cursor blinking on/off.
`LCDMOVE` int *
  Move the cursor or shift the display area.
`LCDSEEK` int *
  Move the cursor to the specified position. On the first line, the position is specified by a value between 0x00 and 0x27. On the second line, the value is between 0x40 and 0x67.
`LCDRESTORE`
  Restore boot-time LCD message.

These ioctl parameters are defined in `<machine/lcd.h>`.

# FILES

/dev/lcd

# SEE ALSO

ioctl(2)

# HISTORY

The `lcd` driver originally first appeared in OpenBSD 4.1. It was ported from OpenBSD and first appeared in NetBSD 8.0.

June 12, 2022 | NetBSD 11.99