mslp_protocol.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. To create the most basic link insert text between \e[4m and \e[24m. These are
  2. the VT100 codes for underline on and underline off.
  3. #showme {Example: \e[4mlink1\e[24m ... \e[4mlink2\e[24m}
  4. ------------------------------------------------------------------------------
  5. If you want to create a link without the underline use \e[4;24m instead of
  6. \e[4m.
  7. #showme {Example: \e[4;24mlink3 (no underline)\e[24m}
  8. ------------------------------------------------------------------------------
  9. Links when clicked generate a LINK event, which are visible if you use
  10. #config mouse info. Example:
  11. #event {SHORT-CLICKED LINK MOUSE BUTTON ONE} {#showme {click!}}
  12. ------------------------------------------------------------------------------
  13. If you want to create a complex link use an OSC code.
  14. \e]68;hello world\a\e[4mlink4\e[24m
  15. The link part remains the same, \e[4mlink4\e[24m, but since it is prefixed
  16. with the OSC code \e]68;hello world\a the %4 argument of the triggered LINK
  17. event will contain hello world.
  18. ------------------------------------------------------------------------------
  19. \e]68;\001test\002hello world\a\e[4mlink5\e[24m
  20. The OSC code can contain MSDP. \001 indicates the start of a variable
  21. name, and \002 indicates the start of a variable value. In tintin
  22. this gets translated to {test}{hello world} which is available in the
  23. %4 argument of the event.
  24. ------------------------------------------------------------------------------
  25. \e]68;\001name6a\002value6a\001name6b\002value6b\a\e[4mlink6\e[24m};
  26. In tintin this gets translated to {name6a}{value6a}{name6b}{value6b}
  27. ------------------------------------------------------------------------------
  28. \e]68;0;command\a
  29. This is the most basic link.
  30. \e]68;0;
  31. \e]68;1;
  32. These three are identical and generate a standard link event.
  33. ------------------------------------------------------------------------------
  34. \e]68;2;
  35. In tintin the ;2; option is used for internal help files.
  36. ------------------------------------------------------------------------------