• Anyone well versed in MPL or python for Mystic?

    From Flynn@21:2/102 to All on Tuesday, June 19, 2018 17:57:15
    I'm thinking about embarking on a project and I'd like to bounce some ideas
    off some people that are familiar with the programming language to see how I might accomplish some of the things that my project is going to require.

    For example one of the questions I have is how to control the screen for all the users - so for example if someone is set to 24 lines and someone else is set to 52 lines how do I detect that and adjust my application output accordingly?

    Anyone?

    Rich

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: Flynn's Arcade (21:2/102)
  • From Gryphon@21:1/120 to Flynn on Wednesday, June 20, 2018 07:50:48
    On 06/19/18, Flynn said the following...

    I'm thinking about embarking on a project and I'd like to bounce some ideas off some people that are familiar with the programming language to see how I might accomplish some of the things that my project is going
    to require.

    For example one of the questions I have is how to control the screen for all the users - so for example if someone is set to 24 lines and someone else is set to 52 lines how do I detect that and adjust my application output accordingly?

    There is a function called MCI2STR() which will allow you to get the user's screen length field. You'll have to supply val:=MCI2STR('XX') where 'XX' is the MCI code for the user's screen length. The MCI2STR() function is good
    for retrieving all the data from available MCI codes.

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)