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.
General Information
Section titled “General Information”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.
Properties
Section titled “Properties”| Property | Description |
|---|---|
text | The 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. |
width | Width of the visible ticker window in columns. |
motion | How the text moves. See Motion Styles below. Default: left. |
effect | Visual effect applied to the text each tick. See Effects below. Default: normal. |
tickInterval | Milliseconds between animation steps (default: 100). Lower = faster. |
holdTicks | For reveal, typewriter, and fallLeft/fallRight motions: ticks to hold at full display before cycling (default: 20). |
fillChar | Character used to fill empty space in the window (default: space). |
Motion Styles
Section titled “Motion Styles”Controls how the text moves within the window. Set via the motion property.
| Motion | Description |
|---|---|
left | Continuous left-scroll that loops with a gap. Default. |
right | Continuous right-scroll that loops with a gap. |
bounce | Text 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. |
reveal | Text slides in from the right, holds for holdTicks, then slides back out. Repeats. |
typewriter | Characters appear one per tick from left-to-right, hold at full display for holdTicks, then instantly clear and repeat. |
fallLeft | All characters start spread evenly across the window then slide left, stacking against the left edge. Holds for holdTicks, then re-spreads and repeats. |
fallRight | Same as fallLeft but characters slide right and stack against the right edge. |
Effects
Section titled “Effects”Controls the visual appearance of the text. Set via the effect property.
Text-Style Effects
Section titled “Text-Style Effects”These apply a character-level transformation to the text at setText time. The transformation is permanent per-tick (no per-frame overhead).
| Effect | Example |
|---|---|
normal | Text as-is. Default. |
upper | ALL CAPS |
lower | all lowercase |
title | Title Case |
firstLower | fIRST lETTER lOWERCASED |
smallVowels | SMaLL VoWeLS |
bigVowels | bIg vOwEls |
smallI | SMALL i iN DEMENTiA — upper case, but every “i” is lowercase |
mixed | rAnDoM cAsE (re-randomized each setText call) |
l33t | l337 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).
Dynamic Effects
Section titled “Dynamic Effects”These are applied per-tick to the visible window, producing animated color or noise.
| Effect | Description |
|---|---|
rainbow | Each 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. |
scramble | Each 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. |
glitch | Real 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.
Events
Section titled “Events”| Event | When |
|---|---|
cycle complete | The 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.
Examples
Section titled “Examples”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}