Next: , Up: Input modes   [Contents][Index]


5.2.1 Integer input

pref>par min-max:i b
pref

command prefix

par

name of the parameter

min

minimum acceptable value

max

maximum acceptable value. ‘>’ for INT_MAX (largest representable integer);

i

current value. Its always kept between min and max inclusive.

b

auxiliary boolean parameter. Its meaning is command dependent. ‘-’ means disabled and any other capital letter (which often suggests the meaning) is enabled. It may not be used in which case nothing is shown in this field.

KEYS
-
_

decrement i

+
=

increment i

0..9

enter decimal value directly

\

delete least significant decimal digit

N

negates i

SPACE

toggle auxiliary boolean parameter. Only effective if the auxiliary boolean parameter is used and is not read-only.

BACKSPACE

confirm and return

/

return

This is the canonical input mode for setting integer parameters. It processes user input in such a way that it’s impossible to enter an integer outside the expected range. The integer may be inputted directly, useful in cases the user want to input a value significantly far from the current one and doesn’t care about any visual feedback for values in between, or may otherwise be incremented or decremented one by one.

If present, an auxiliary boolean parameter somehow associated with the integer parameter may be set as well. In some cases toggling it, effectively changes the acceptable range for the integer parameter.