Skip to content

Instantly share code, notes, and snippets.

@oestrich
Last active March 25, 2019 02:16
Show Gist options
  • Save oestrich/17d7093254ea105b569dca0164242adc to your computer and use it in GitHub Desktop.
Save oestrich/17d7093254ea105b569dca0164242adc to your computer and use it in GitHub Desktop.
Venture Markup Language Client Spec

Venture Markup Language (VML) for Clients

Telnet Option

Constants:

  • IAC: 255
  • WILL: 251
  • WONT: 252
  • DO: 253
  • DONT: 254
  • VML: 147
Client: IAC DO VML
Server: IAC WILL VML
Server can send VML from here on.

Defaults:

  • Client: IAC DONT VML
  • Server: IAC WONT VML

Allowed Tags

color

The color tag lets you wrap text for coloring in the client. Color tags can be nested and should handle the color stack properly.

Arguments

  • foreground: String, RGB triplet, default: use current color
    • for the color of text
  • background: String, RGB triplet, default: use current color
    • for the background behind the text

Example:

{color foreground="169,114,218"}Grapevine, where you {color background="255,255,255"}heard{/color} it.{/color}

command

The command tag lets you wrap text that should be highlighted and underlined as something that the user can click. When the user clicks the command text will be send as if the user typed it in.

Arguments

  • send: string, optional
    • Instead of sending the text the command tag wraps, send this text
  • click: boolean, optional, default: true
    • If false then the command will be highlighted but clicking does not send text

Example

Help:

- {command send="help combat"}Combat{/command}
- {command send="help movement"}Movement{/command}

link

The link tag lets you wrap text that should be opened in the browser. If the client is a web client, a new tab will be opened.

Arguments

  • href: string, optional, default: text wrapped by the link tag
    • Set to change the href of the generated link

Example

{link}https://grapevine.haus{/link}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment