PROPHET/OS

NAME

more: reads lines from in and stops after every screen

SYNOPSIS

more [selbsttest]

DESCRIPTION

Reads lines from in and stops after every screen. Space or Enter shows the next screen, q gives up.

q counts with shift or ctrl held down too. A key read carries its modifiers from bit 16 on (os/include/prog/keycodes.h), so the question masks them away before it compares; until 2026-10-14 it compared the full word, and a Q typed with shift was neither q nor Q (R12-MORE-01).

Without a console it does not stop at all, so more in a pipe or in a script behaves like cat and nothing hangs waiting for a key nobody is there to press.

more selbsttest drives that one question without a key: ten keys, five of which have to give up and five of which must not.

EXAMPLE

$ cat /system/config/shell.conf | head -n 20 | more
# ProphetOS, the settings of the shell.
#
# Three steps, and the user's own file wins:
#
#   <home>/.shell.conf          the user's own, if it is there
#   /system/config/shell.conf   otherwise this one
#   in the program              otherwise the default
#
# Which step held is what the built-in `prompt` says. Read once when the
# shell starts, because the prompt is drawn from it on every line.
#
# One line is a key, a space, a value. Everything behind # is comment.
# The value keeps the spaces inside it and loses those at the edges, so
# a prompt may carry spaces but not a trailing one.
#
# Until 2026-09-30 this stood as `shell.prompt` in kernel.conf and as a
# node in the kernel's control tree. A prompt is the shell's business
# (R9-KNOTEN-01).

# The prompt. Placeholders:

SEE ALSO

cat, head, tail