Skip to content

Ticker View

A ticker view displays text as a continuously animated marquee inside a fixed-width window. It supports multiple independent motion styles and visual effects that can be freely combined.

The ticker starts automatically when the screen loads and runs until the screen is torn down. Standard and focus SGR colors are set by placing duplicate MCI codes back-to-back in the art file.

A ticker can share a screen with a text entry view, such as a menu’s ET command prompt. After every tick the cursor and color go back to whichever view has focus, in the menu’s art or in its prompt, so what the user types lands in the field rather than at the end of the ticker. The cursor is hidden while the ticker draws.

PropertyDescription
textThe text to display. Supports pipe color codes and predefined MCI format codes (e.g. {BN}, {CT}). A cursor-forward code (|CF05) becomes that many spaces; the other cursor codes are left out.
widthWidth of the visible ticker window in columns.
motionHow the text moves. See Motion Styles below. Default: left.
effectVisual effect applied to the text each tick. See Effects below. Default: normal.
tickIntervalMilliseconds between animation steps (default: 100). Lower = faster.
holdTicksFor reveal, typewriter, and fallLeft/fallRight motions: ticks to hold at full display before cycling (default: 20).
fillCharCharacter used to fill empty space in the window (default: space).

Controls how the text moves within the window. Set via the motion property.

MotionDescription
leftContinuous left-scroll that loops with a gap. Default.
rightContinuous right-scroll that loops with a gap.
bounceText oscillates left and right, reversing direction at each end. No gap between loops. Only text longer than width moves: text that fits the window stays still.
revealText slides in from the right, holds for holdTicks, then slides back out. Repeats.
typewriterCharacters appear one per tick from left-to-right, hold at full display for holdTicks, then instantly clear and repeat.
fallLeftAll characters start spread evenly across the window then slide left, stacking against the left edge. Holds for holdTicks, then re-spreads and repeats.
fallRightSame as fallLeft but characters slide right and stack against the right edge.

Controls the visual appearance of the text. Set via the effect property.

These apply a character-level transformation to the text at setText time. The transformation is permanent per-tick (no per-frame overhead).

EffectExample
normalText as-is. Default.
upperALL CAPS
lowerall lowercase
titleTitle Case
firstLowerfIRST lETTER lOWERCASED
smallVowelsSMaLL VoWeLS
bigVowelsbIg vOwEls
smallISMALL i iN DEMENTiA — upper case, but every “i” is lowercase
mixedrAnDoM cAsE (re-randomized each setText call)
l33tl337 5p34k

firstLower, smallVowels, bigVowels and smallI can also be spelled as other views’ textStyle takes them: first lower, small vowels, big vowels and small i. Pipe colors stay on the characters they were on, even where a style turns one character into two (upper makes ß into SS).

These are applied per-tick to the visible window, producing animated color or noise.

EffectDescription
rainbowEach character cycles through 6 bright ANSI colors. The color band swims through the text with the scroll, producing a flowing neon look. Replaces the text’s own pipe colors.
scrambleEach tick, about 30% of the characters (fill characters aside) are replaced with random noise characters, each drawn in reverse video of that character’s own color (its pipe color, or the view’s normal color), giving a decryption/hacker feel.
glitchReal text with 1–3 random characters corrupted to noise per tick. The noise is drawn in the view’s focus color (styleSGR2, or the second of a doubled MCI code; the normal color when none is set), so the theme decides it. Looks like signal interference.

Pipe colors in text survive every motion. scramble and glitch keep them on the characters they leave alone; only rainbow replaces them.


EventWhen
cycle completeThe current text has finished one full pass and is about to repeat.

Use it to drive a rotating feed without cutting a message off mid-word:

tickerView.on('cycle complete', () => {
const next = feed.shift();
if (next) {
tickerView.setText(next);
}
});

Each motion has its own boundary: left / right fire when the scroll offset wraps; reveal, typewriter, fallLeft and fallRight fire when the hold phase ends and the cycle restarts; bounce fires on a full round trip back to the left edge.


Scrolling board name with rainbow effect (expand)
TK1: {
text: "Welcome to {BN} -- {VN} "
width: 60
motion: left
effect: rainbow
tickInterval: 80
}
Bouncing l33t ticker (expand)
TK1: {
text: "ENiGMA BBS - the future is now"
width: 20 // narrower than the text (30 columns), or it would not move
motion: bounce
effect: l33t
tickInterval: 60
}
Typewriter reveal with glitch effect (expand)
TK1: {
text: "SYSTEM ONLINE"
width: 40
motion: typewriter
effect: glitch
tickInterval: 100
holdTicks: 30
}
Slide-in reveal (expand)
TK1: {
text: "Welcome back, {UN}"
width: 40
motion: reveal
effect: normal
tickInterval: 60
holdTicks: 25
}