• Doubts about BASH scripts output in BBS

    From Indrid Cold@21:1/165 to All on Friday, September 16, 2016 22:59:00
    Hi all,

    please help me, I'm getting crazy while trying to find a solution to some of
    my projects, regarding items implementation in Mystic...

    I really like to build little scripts in BASH shell, with the hope to find a way to correctly output them from BBS external commands exec.

    I made a batch to retrieve latest 10 RSS feeds/tweets from my BBS Twitter account, dump in a file log, and pipe/parse/colorize the CAT output with clide package, to highlight words and expressions as I like.

    The problem is: I made a main menu item, recalling the external shell script
    I talked about before - the command is exec but I would like to clean all the screen BEFORE that, and the output screen keep on screen, without immediately escape... if I disable redraw, the output keeps on screen, but I can't escape anymore to any menu.

    I really hope I've been (almost) clear in this problem... I've done all this work to maintain customized-colourized CAT output from shell, of a log, etc.

    ¯¯ÅndçŒd Cíld®®

    "What do you look like?"
    "It depends on who is looking."

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Miskatonic BBS | telnet://rasppi.servebbs.org (21:1/165)
  • From rEApZ@21:1/166 to Indrid Cold on Saturday, September 17, 2016 22:49:00
    The problem is: I made a main menu item, recalling the external shell script I talked about before - the command is exec but I would like to clean all the screen BEFORE that, and the output screen keep on screen, without immediately escape... if I disable redraw, the output keeps on

    Hey Indrid!
    Could you '(GT) Display line of text' with the data '|CL' in the line before you display your file? I have this a few times on my board

    ÄÄÄÄÄ Â¿Ú¿ Ú¿ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    ²±°Û ¿à ôڿÚÙ DatanetBBS.net:23 ÛÛ²±°
    ÄÄÄÄÄ Á ÁÙÙÀÅÙÀÙ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Datanet BBS | telnet://datanetbbs.net:23 (21:1/166)
  • From Indrid Cold@21:1/165 to rEApZ on Saturday, September 17, 2016 15:36:00
    Could you '(GT) Display line of text' with the data '|CL' in the line before you display your file? I have this a few times on my board

    Oh dear rEApZ! Is this thing really working - I'll try it immediately, thanks and stay ready for others doubts/problems! * I know, I know... please have patience! I swear, before asking, I search and study a lot by myself...

    PS. And for quitting the screen by keypress, how can I implement this in a shell output imported in BBS...

    ¯¯ÅndçŒd Cíld®®

    "What do you look like?"
    "It depends on who is looking."

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Miskatonic BBS | telnet://rasppi.servebbs.org (21:1/165)
  • From rEApZ@21:1/166 to Indrid Cold on Sunday, September 18, 2016 12:14:00
    PS. And for quitting the screen by keypress, how can I implement this in
    a shell output imported in BBS...


    Hey Indrid, I hope the |CL works! I'm not sure what you are looking for in
    this one. Did you want to exit back to the BBS after executing a shell
    script? Or did you want to exit back to the menu after a keypress after displaying a file?
    Cheers,
    Steve

    ÄÄÄÄÄ Â¿Ú¿ Ú¿ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    ²±°Û ¿à ôڿÚÙ DatanetBBS.net:23 ÛÛ²±°
    ÄÄÄÄÄ Á ÁÙÙÀÅÙÀÙ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Datanet BBS | telnet://datanetbbs.net:23 (21:1/166)
  • From Indrid Cold@21:1/165 to rEApZ on Sunday, September 18, 2016 18:47:00
    Hey Indrid, I hope the |CL works! I'm not sure what you are looking for

    Really thanks mate, you've been really kind driving me to the *at the end* simple solution > |CL works greatly as sub-command and my problem was that I didn't know about 'DISPLAY A TEXT LINE' function - I've solved putting a
    second post-sub-command with |PN as DT, when I need it for problems regarding BASH-BBS transition with some scripts.

    ¯¯ÅndçŒd Cíld®®

    "What do you look like?"
    "It depends on who is looking."

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Miskatonic BBS | telnet://rasppi.servebbs.org (21:1/165)
  • From Gryphon@21:1/120 to Indrid Cold on Sunday, September 18, 2016 11:58:00
    On 09/17/16, Indrid Cold said the following...

    Could you '(GT) Display line of text' with the data '|CL' in the line before you display your file? I have this a few times on my board

    Oh dear rEApZ! Is this thing really working - I'll try it immediately, thanks and stay ready for others doubts/problems! * I know, I know... please have patience! I swear, before asking, I search and study a lot
    by myself...

    PS. And for quitting the screen by keypress, how can I implement this in
    a shell output imported in BBS...

    Just use the 'read' command.

    "No matter where you go, there you are!" - Buckaroo Bonzai

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Cyberia BBS | Cyberia.Darktech.Org | Kingwood, TX (21:1/120)
  • From Indrid Cold@21:1/165 to Gryphon on Sunday, September 18, 2016 19:05:00
    Just use the 'read' command.

    Thanks Gryphon, I'll try READ too. I've used it in the past for interactive choices in BASH scripts...

    ¯¯ÅndçŒd Cíld®®

    "What do you look like?"
    "It depends on who is looking."

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Miskatonic BBS | telnet://rasppi.servebbs.org (21:1/165)
  • From rEApZ@21:1/166 to Indrid Cold on Monday, September 19, 2016 07:49:00
    Really thanks mate, you've been really kind driving me to the *at the
    end* simple solution > |CL works greatly as sub-command and my problem
    was that I didn't know about 'DISPLAY A TEXT LINE' function - I've
    solved putting a second post-sub-command with |PN as DT, when I need it for problems regarding BASH-BBS transition with some scripts.

    Hey Indrid, glad that it worked for you! :)

    ÄÄÄÄÄ Â¿Ú¿ Ú¿ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
    ²±°Û ¿à ôڿÚÙ DatanetBBS.net:23 ÛÛ²±°
    ÄÄÄÄÄ Á ÁÙÙÀÅÙÀÙ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Datanet BBS | telnet://datanetbbs.net:23 (21:1/166)