• Screen Cursor Control

    From Recon #1@126.Wwivnet@11:1/101 to All on Sat Nov 30 10:02:59 2024

    Hi devs ..

    I'm playing around with MCI controls within the bbs.str.ini file and am not getting the intended results. I'm sure it's something I'm doing wrong.

    What I'm hoping to do is display the name and password input where I want each user input to be within an ANSI. Prior to that, I just want to get the text Name, Number, New: and Password: to display where I want on the screen. Here is what I am getting:

    Member #, Alias, or 'NEW'...: 1
    "[16


    This is using the following within bbs.str.ini

    NN_PROMPT = """|[15;13HMember #, Alias, or 'NEW'...: """PW_PROMPT = "|[16;14HPassword.....................: "

    Cutting and pasting doesn't work well in the old school line editor I'm using BUT the PW_PROMPT = is obviously on it's own line within bbs.str.ini

    As you can see above Member ±#, Alias, or 'NEW'...: displays where intended. Password...................: doesn't display at all. It displays as:
    "[16

    Mind you that is using the pipe code then [ then 16 for ; 14 H then text.

    What would be the proper syntax?

    Once I get this working, I'd then like to eliminate the text all together and use an ANSI that has the text "Alias:" and "Password:" with a box that the input field draws into (within the middle of the ansi file). From what I've tried so far, I have been unsuccessful at getting MCI codes (displayed after an ansi) to draw into an ANSI file already created.

    Any info in syntax would be appreciated.

    In an effort to keep "questions/issues" separate, I'll stop here and ask my next question about bbs.str.ini in the next post.

    Thanks for anyone with a bit of experience with using these or having written the code for them.

    r3c0n

    |08Gh|150|08sts |07in the |15Machine
    |08ghostmachine.ddns.net|15:|08 t|151717 |08ssh|157777


    p ╞"→
    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)
  • From Rushfan #1@513.Wwivnet@11:1/101 to Recon #1 on Sat Nov 30 11:23:48 2024


    Mind you that is using the pipe code then [ then 16 for ; 14 H then
    text.

    What would be the proper syntax?


    It seems to work right on multi-line string syntax, there's likely a bug somehwere in the single string parsing.

    I had this work
    PW_PROMPT="""
    **ESCAPE CODE HERE**PW:"""

    You had the right syntax (I'm adding spaces to maek it not interpret):
    | [ ROW ; COL H

    | and [ togther make up the start of the ANSI sequence.

    I filed https://github.com/wwivbbs/wwiv/issues/1641 to track this. Someone could write a unit test to try to reproduce it in the core/ini code then it should be an easy fix.

    rushfan


    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)