====== Screens and themes ====== Every screen is a file. Put yours in ''%%screens/%%'' with the name of the screen it replaces; the built-in one in ''%%text/%%'' is then not used. The web admin page (Screens) can upload and preview. ===== Themes ===== A theme is the look of the whole BBS: a set of screens and the colours of everything Ironbark draws itself (prompts, lists, the full-screen sysop programs). ''%%[bbs] theme%%'' in ironbark.toml names one; screens are looked for in your ''%%screens/%%'' folder first, then the theme's, then the built-in ones in ''%%text/%%'', so your own screens always win. ^ Theme ^ Look ^ | ''%%ironbark%%'' | the built-in screens; blue, cyan and yellow | | ''%%kalgoorlie%%'' | the Kalgoorlie Retro Gaming BBS screens (logon, menus, information, log-off) | | ''%%outback%%'' | red earth and gold: blues become red, cyans gold, boxes on black | | ''%%amber%%'' | an amber-screen terminal: all of Ironbark's text amber on black | | ''%%green%%'' | a green-screen terminal, the same in green | Pick one with ''%%ironbark theme use NAME%%'' (''%%ironbark theme%%'' lists them, ''%%*%%'' = in use), in Configuration > BBS settings > Theme, or when setting up: ''%%ironbark init FOLDER --theme NAME%%'', ''%%--ask%%'' (the Linux installer asks), or the Windows installer's components page. A running BBS takes a change at the next Configuration save (or a restart). Each theme is a folder ''%%themes/NAME%%'' with ''%%theme.toml%%'' and, if it has its own screens, ''%%themes/NAME/screens/%%''. ''%%ironbark init%%'' writes the built-in ones there (missing files only), so the easiest way to make your own is to copy one: title = "Outback" description = "Red earth and gold." recolour_screens = true # the colours apply to screen files written with colour codes too [foreground] # the text colour each one becomes blue = "red" cyan = "yellow" [background] # the background each one becomes blue = "black" Colours are black red green yellow blue magenta cyan white. ANSI art (''%%.ans%%'' with escape codes) always keeps its own colours. The web admin's Screens page lists the theme's screens; editing one saves your own copy in ''%%screens/%%''. ^ Name ^ Shown ^ | ''%%answer%%'' | before the login prompt | | ''%%newuser%%'' | before sign-up | | ''%%badpassword%%'' | after a wrong password | | ''%%welcome%%'' | after logon (the standard logon sequence) | | ''%%random_*%%'' | one picked at random, wherever a screen name has a ''%%*%%'' | | ''%%bulletin1%%'', ''%%bulletin2%%'' ... | each shown once at logon, and again when the file changes (the sysop's Bulletin Manager, [[ironbarkbbs:sysop_tools|section 18]], looks after them) | | ''%%bullseye%%'' + ''%%bullseye.cfg%%'' | the bulletin list (Synchronet BullsEye format) | | ''%%menu/main%%'' | the main menu (''%%main.ans%%'' at the top of ''%%screens/%%'' works too) | | ''%%menu/head%%'', ''%%menu/tail%%'' | often included by other menus | | ''%%menu/logoninfo%%'' | your statistics at logon | | ''%%menu/transfer%%'', ''%%menu/e-mail%%'', ''%%menu/qwk%%'', ''%%menu/maininfo%%'', ''%%menu/sysmain%%'' | section menus | | ''%%menu/xtrn_sec_head%%'', ''%%menu/xtrn_head%%'' | above the door section and door lists | | ''%%menu/msghdr%%'' | the message header (built-in one if missing) | | ''%%menu/logoff%%'' | when callers leave | | ''%%system%%'' | system information (I, I) | | ''%%textfiles/*%%'' | the G text file section | Formats, by file ending: * ''%%.ans%%'', ''%%.asc%%'': ANSI art. Ctrl-A codes and @-codes work here too. * ''%%.msg%%'': Synchronet style, Ctrl-A colour codes (''%%^Ah^Ay%%'' = bright yellow). * ''%%.pcb%%'': PCBoard ''%%@X1F%%'' colour codes. * ''%%.pip%%'': Renegade/Mystic pipe codes (''%%|07%%'', ''%%|14%%'', ''%%|17%%'' for backgrounds). * A ''%%.40col%%'' version (''%%main.40col.msg%%'') is used for terminals narrower than 80 columns. * SAUCE records are ignored. A UTF-8 file starting with a byte-order mark is converted. @-codes are filled in when shown, for example ''%%@BBS@%%'', ''%%@SYSOP@%%'', ''%%@ALIAS@%%'', ''%%@NODE@%%'', ''%%@TIME@%%'', ''%%@DATE@%%'', ''%%@TLEFT@%%'', ''%%@MINLEFT@%%'', ''%%@CALLS@%%'', ''%%@LASTDATEON@%%'', ''%%@UPTIME@%%'', ''%%@TCALLS@%%'', ''%%@MAILW@%%'', ''%%@CONN@%%'', ''%%@IP@%%'', ''%%@COLS@%%'', ''%%@ROWS@%%'', ''%%@CHARSET@%%'', ''%%@GRP@%%'', ''%%@SUB@%%'', ''%%@DIR@%%'', ''%%@MSG_SUBJECT@%%'', ''%%@MSG_FROM@%%'', ''%%@MSG_DATE@%%'' ... Widths as in Synchronet: ''%%@ALIAS-L20@%%'' (left in 20), ''%%@NODE-R4@%%'' (right in 4), ''%%@TIME-L@%%'' (the width of the code itself). ''%%@INCLUDE:%zmenu/head.msg@%%'' and ''%%@MENU:../banner*@%%'' include other screens; ''%%@SYSONLY@ ... @SYSONLY@%%'' is only shown to sysops; ''%%@CLS@%%'' and ''%%@PAUSE@%%'' do what they say. System statistics (see 14, Statistics): ''%%@TCALLS@%%'' (calls in all), ''%%@TODAYCALLS@%%'', ''%%@TPOSTS@%%'', ''%%@TODAYPOSTS@%%'', ''%%@TEMAIL@%%'', ''%%@TODAYEMAIL@%%'', ''%%@TUSERS@%%'' (users on file), ''%%@TNEWUSERS@%%'', ''%%@TODAYUSERS@%%'' (new users today), ''%%@TUPLOADS@%%'', ''%%@TODAYUPLOADS@%%'', ''%%@TDOWNLOADS@%%'', ''%%@TODAYDOWNLOADS@%%'', ''%%@TMINUTES@%%'', ''%%@TODAYMINUTES@%%'', and Synchronet's names: ''%%@STATS.LOGONS@%%'', ''%%@STATS.LTODAY@%%'', ''%%@STATS.TIMEON@%%'', ''%%@STATS.TTODAY@%%'', ''%%@STATS.ULS@%%'', ''%%@STATS.ULB@%%'', ''%%@STATS.UTODAY@%%'', ''%%@STATS.ULBTODAY@%%'', ''%%@STATS.DLS@%%'', ''%%@STATS.DLB@%%'', ''%%@STATS.DTODAY@%%'', ''%%@STATS.DLBTODAY@%%'', ''%%@STATS.PTODAY@%%'', ''%%@STATS.ETODAY@%%'', ''%%@STATS.NUSERS@%%'' (new users today, as in Synchronet), ''%%@STATS.POSTS@%%'', ''%%@STATS.EMAIL@%%'', ''%%@STATS.SINCE@%%''. ===== Editing screens in the browser ===== The web admin's Screens page has an **Edit** button on each screen and a **New screen** button. The editor draws with a VGA font in the 16 DOS colours, 80 columns (40 to 132 can be chosen), and grows downwards as you type. * Type at the cursor; arrows, Home/End, PgUp/PgDn, Enter, Backspace, Delete, Tab. Insert switches between insert and overwrite. * F1-F10 type a character from the current set (TheDraw-style: lines, double lines, blocks and shades ...); Shift+F1-F10 or the arrows beside the set choose the set. The character chart picks the current character (Shift-click types it). * Colours: click a colour for the foreground, right-click or Shift-click for the background. Ctrl+Up/Down and Ctrl+Left/Right step through them; Alt+U picks up the colour under the cursor, Alt+click picks up colour and character. Tick iCE colours for 16 backgrounds (SyncTERM shows them; other terminals blink instead). * Tools: Type/select (drag or Shift+arrows to select), Paint, Recolour, Half-block (two "pixels" a cell), Line and Box (single or double lines that join up with lines already there, or the current character). * With a selection: Copy, Cut, Paste, Move (arrows or drag, then Enter or click to drop, Esc to cancel), Fill, Colour, Erase. +Row/-Row/+Col/-Col insert and delete at the cursor. Ctrl+Z/Ctrl+Y undo and redo. * @-codes are typed as text (''%%@ALIAS@%%'', ''%%@TLEFT@%%'' ...). "Show @-codes filled in" shows them with sample values; "Caller's view" shows the last 80x25 a caller sees. * "Caller's cursor ends" sets where the cursor is left after the screen, which is where a menu prompt appears. A screen read from a file keeps what the file did. **Save** always writes to ''%%screens/%%'' (a built-in screen in ''%%text/%%'' is never changed): as ''%%.ans%%'' (ANSI, CP437, CR LF, with a SAUCE title/author/group if ticked), or as ''%%.msg%%''/''%%.asc%%'' with Synchronet Ctrl-A codes. The version it replaces goes to ''%%screens/.backup/%%'' with the date and time on its name; another file of the same name with a different ending (say ''%%main.msg%%'' when you save ''%%main.ans%%'') is moved there too, so the new one is shown. **Download .ans** saves a copy to your computer and **Import .ans** reads an ''%%.ans%%'', ''%%.msg%%'', ''%%.pcb%%'' or ''%%.pip%%'' file from your computer into the editor. ''%%.pcb%%'' and ''%%.pip%%'' screens open in the editor and are saved as ''%%.ans%%'' or ''%%.msg%%''. Terminals: Ironbark finds out ANSI, the window size and UTF-8 by itself (SyncTERM, NetRunner and other BBS terminals get CP437; xterm-style terminals get UTF-8). Callers can change it with D. ---- //From the Ironbark Sysop Guide, which is also in every download as ''SYSOP-GUIDE.txt''.//