Channel definition.
Channel definition.Each channel entry in the file etc/channel.defs/CHANNELS is parsed into this structure. All of the information in the CHANNELS table is available here, too.
- ttyname
- The name of the device special this channel is on, minus the "/dev/". For instance, the third virtual console on a Linux box is "tty3".
- config
- The name of the bbsgetty config file to load for this channel. Each config file corresponds to one type of hardware (one make and model of modem, serial hardware, et cetera), and prepares it for use by the BBS. In the case of a modem, for example, it sends initialisation strings, sets the bps rate, and instructs bbsgetty to wait for a RING.
- channel
- The channel number. This is printed as a hexadecimal number to keep it short and for traditional reasons: Major did it because a Galactibox had 16 slots, and there were Galacticomm multiple modems with power-of-two devices on each card, up to, I think, eight. Besides, with Major only supporting 64 (and then 256) lines, a 16x4 and then 16x16 arrangement was a good idea. Thus, bear in mind that channel "20", is, in fact, channel 0x20, i.e. 32. Channels are almost always referred to in this confusing manner (i.e. without any indication of base). It is considered a good idea to avoid (if possible) using numbers such as 1a because they've been known to drive computer-naive users nuts.
- key
- The key required to allow users to login on this channel.
- lang
- The default language to use for this channel. Different channels can have different languages. The reason is simple: certain encodings don't mix well with certain connections (older telnet clients, 7-bit ASCII serial connections, et cetera). It'd be a good idea to be able to display a language the users can read in order to login. The default language may be negative, in which case a language selection menu is presented to the user, and the default language is the absolute value of this field.
- flags
- Flags for this channel, in the form of TTF_x flags ORred together. This field sets the channel's defaults and assumptions, like whether to assume that users have ANSI enabled, et cetera.
- xlation
- The default translation mode for this channel. It's here for the same reasons as the default language field, lang.