• Mystic menu display + pause question

    From dozo@21:1/238 to All on Wednesday, February 01, 2023 12:57:48
    Hi all,

    I have a question regarding a menu option I'd like:
    - user goes to a new menu by pressing a key
    - menu should clear the screen and show an ANSI file (I can't figure out how to do a CLS)
    - a pause prompt should appear centered below the ANSI
    - user should return to the previous menu (pressing enter doesn't work now)

    Must be simple enough, yet I can't figure it out (yet). Any pointers appreciated!

    Cheers,

    dozo

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: (21:1/238)
  • From Kidd Wicked@21:1/169 to dozo on Wednesday, February 01, 2023 11:04:58
    On 01 Feb 2023, dozo said the following...

    Hi all,

    I have a question regarding a menu option I'd like:
    - user goes to a new menu by pressing a key
    - menu should clear the screen and show an ANSI file (I can't figure out

    Use the mystic built in ansi editor and when you save the ansi select it to clear screen. the ansi editor is in mystic -cfg > other > ansi editor > esc > O open file > esc > S save file > clear screen yes. or just edit the file and put a PIPE CL in the very first line. I like the first option better..

    |15K|07í|08dd |15W|07íck|08ed



    ... I know they say that money talks, but all mine says is 'Goodbye'

    --- Mystic BBS v1.12 A49 2023/01/27 (Linux/64)
    * Origin: bbs.SinnersHaven.com (21:1/169)
  • From dozo@21:1/238 to Kidd Wicked on Wednesday, February 01, 2023 16:41:47
    On 01 Feb 2023, Kidd Wicked said the following...

    Use the mystic built in ansi editor and when you save the ansi select
    it to clear screen.

    Thanks, that was very helpful! Fixed my problem regarding the CLS.

    Cheers,

    dozo

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: (21:1/238)
  • From xqtr@21:1/111 to dozo on Wednesday, February 01, 2023 18:52:59
    I have a question regarding a menu option I'd like:
    - user goes to a new menu by pressing a key

    If you mean a Mystic menu, you have to configure a new one from the Mystic Configuration Editor. When you'll create it, you will edit the menu that's appearing before the new one and create a custom menu entry, that will use the GO command, to enter the newly created menu...

    - menu should clear the screen and show an ANSI file (I can't figure out h to do a CLS)

    There are many ways to do this. For me the most easy one, is to edit the menu, in mystic config. editor and while you are editing it, press / to open the menu settings. There you will see a Menu Header prompt. In there you can enter: `CL`DFansifile

    Where ` is the pipe character. This will first clear the screen and then display an ansi file, named "ansifile.ans" from withing the /text folder.

    - a pause prompt should appear centered below the ANSI

    Again, many ways to do it. A simple "hack" would be to edit the ansi file, to have the pause prompt inside it and add the `PN (pause no prompt) MCI code to the Menu Header prompt, so you have: `CL`DFansifile`PN

    - user should return to the previous menu (pressing enter doesn't work now

    To exit a menu, you have to add a custom command which will accept the appropriate hotkey, ex. ESC key to exit.

    From what you are describing, you don't even have to create a Mystic Menu, all the above can be achieved in a custom menu entry. Create one and use the GT (display line of text) command to enter the `CL`DFansifile`PN string.

    .
    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A47 2020/11/23 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From dozo@21:1/238 to xqtr on Wednesday, February 01, 2023 20:00:46
    On 01 Feb 2023, xqtr said the following...

    From what you are describing, you don't even have to create a Mystic
    Menu, all the above can be achieved in a custom menu entry. Create one
    and use the GT (display line of text) command to enter the `CL`DFansifile`PN string.

    Thanks, that worked like a charm and I can do with one menu less :)

    Cheers,

    dozo

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: (21:1/238)
  • From Kidd Wicked@21:1/169 to dozo on Wednesday, February 01, 2023 18:34:58
    On 01 Feb 2023, dozo said the following...

    On 01 Feb 2023, Kidd Wicked said the following...

    Use the mystic built in ansi editor and when you save the ansi sele it to clear screen.

    Thanks, that was very helpful! Fixed my problem regarding the CLS.

    Go to Mystics wiki. this page will help you with the pause stuff..

    http://wiki.mysticbbs.com/doku.php?id=displaycodes

    |15K|07í|08dd |15W|07íck|08ed



    ... I failed math so many times at school, I can't even count.

    --- Mystic BBS v1.12 A49 2023/01/27 (Linux/64)
    * Origin: bbs.SinnersHaven.com (21:1/169)
  • From Bucko@21:4/131 to xqtr on Wednesday, February 01, 2023 19:17:16
    On 01 Feb 2023, xqtr said the following...


    Again, many ways to do it. A simple "hack" would be to edit the ansi
    file, to have the pause prompt inside it and add the `PN (pause no
    prompt) MCI code to the Menu Header prompt, so you have:
    `CL`DFansifile`PN


    This would have been my answer to the question also. I used to use the 'CL at the beginning of all screens but there are times when you might want to use the same screen again without the CL so adding it in to the menu command is best. :)


    AL

    ... "No comment" is a comment.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: The Wrong Number Family Of BBS' - Wrong Number ][ (21:4/131)
  • From Alonzo@21:1/130 to dozo on Wednesday, February 01, 2023 21:04:48
    - menu should clear the screen and show an ANSI file (I can't figure out how to do a CLS)

    If you want to clear the screen before the ANSI is displayed, put a |CL in the ANSI file.

    ... As a matter of fact, it IS a banana in my pocket!

    --- Mystic BBS v1.12 A47 2021/12/25 (Windows/64)
    * Origin: The Unmarked Van (21:1/130)