• Display code issue

    From Netsurge@21:4/154 to All on Sat May 25 07:04:21 2019
    Can anyone tell me if this is normal behavior...

    I am trying to use two display codes together and only one seems to work at a time.

    I would like to display the users hostname and right pad it (|$R##) and/or
    trim it ($T##). In my case it looks like the following...

    "|$T41|$R41|UX"

    If I use T & R together only the one that precedes |UX takes effect. So the above example only right pads and doesn't trim and if try "|$R41|$T41|UX" the output trims but doesn't right pad.

    This might just be how Mystic handles the formatting. I hope I'm just doing something wrong as I have a need to both trim and right pad "|UX"

    Thanks.

    frank!netsurge!demonic
    disksh0p!bbs ! bbs.diskshop.ca ! mystic goodness

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: !disksh0p!bbs! bbs.diskshop.ca ! mystic goodness ! (21:4/154)
  • From Avon@21:1/101 to Netsurge on Mon May 27 17:24:05 2019
    On 25 May 2019 at 03:04a, Netsurge pondered and said...

    Can anyone tell me if this is normal behavior...

    Not sure as I have not really played with these. I do know case is important
    in the codes you use, usually uppercase.

    "|$T41|$R41|UX"

    If I use T & R together only the one that precedes |UX takes effect. So the above example only right pads and doesn't trim and if try "|$R41|$T41|UX" the output trims but doesn't right pad.

    This might just be how Mystic handles the formatting. I hope I'm just doing something wrong as I have a need to both trim and right pad "|UX"


    I'm assuming you're not including the "" quotes in the file string you're
    using :)

    Perhaps try |$R41|UX|$T41

    ?? Not sure if that's a starter or not..

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)
  • From Netsurge@21:4/154 to Avon on Mon May 27 04:51:09 2019
    I'm assuming you're not including the "" quotes in the file string you're using :)

    The quotes are there so that Mytsic systems reading this post don't try to
    use them.

    I have come to learn that "|$R" pipe code trims as well as centers. Trial and error is always a painful way of figuring things out, lol.

    frank!netsurge!demonic
    disksh0p!bbs ! bbs.diskshop.ca ! mystic goodness

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: !disksh0p!bbs! bbs.diskshop.ca ! mystic goodness ! (21:4/154)
  • From Avon@21:1/101 to Netsurge on Mon May 27 23:22:01 2019
    On 27 May 2019 at 12:51a, Netsurge pondered and said...

    I have come to learn that "|$R" pipe code trims as well as centers.
    Trial and error is always a painful way of figuring things out, lol.

    Yep it's a case of learn by doing I certainly agree :)

    --- Mystic BBS v1.12 A43 2019/03/03 (Windows/32)
    * Origin: Agency BBS | Dunedin, New Zealand | agency.bbs.nz (21:1/101)