• Using the Mystic fullscreen editor

    From KB2MOB@21:1/176 to All on Thursday, November 17, 2016 12:27:00
    Hello!

    So back when I first started running Mystic, a couple years ago, I asked if there was a way to pull up the fullscreen editor in Mystic to be able to edit and create files, like news and text files. The answer was only using an MPL script. I could never seem to get it working.

    Has anything changed in that regard? Or is it still the same answer. I would like to be able to call it up, without reinventing a wheel.

    Thanks!

    "May The Force be With You, Harry Potter!" - Spock

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Radio Freqs & Geeks BBS - Albany, NY (FN32DO) (21:1/176)
  • From Pequito@21:1/126 to KB2MOB on Tuesday, November 22, 2016 18:16:00
    On 11/17/16, KB2MOB said the following...

    Hello!

    So back when I first started running Mystic, a couple years ago, I asked if there was a way to pull up the fullscreen editor in Mystic to be able to edit and create files, like news and text files. The answer was only using an MPL script. I could never seem to get it working.

    Has anything changed in that regard? Or is it still the same answer. I would like to be able to call it up, without reinventing a wheel.

    Completely changed, mystic supports its own Fullscreen Editor for some time
    now and can change how it looks from the ansi and ini file.

    In your new user settings it should be on by default for users and toggled or selected if set to do so when new users sign up for your system.

    Hope this sheds a little light on the above inquiry. :P

    |08+- |10$s.s$s.s$ |08------------------------------------+
    |08| |10$ý"$$$"ý$ |15tbbs.homeip.net |08|
    |08| |10 .$$$. winkle |02BB|10S |07tbbs.homeip.net:8080 |08|
    |08+--|10 .$$$$$. |08-------------------------------------+
    |10 $ý"~"ý$ |07Christopher Malo |15aka |07Pequito!

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)
  • From Avon@21:1/101 to KB2MOB on Wednesday, November 23, 2016 15:23:00
    On 11/17/16, KB2MOB pondered and said...

    Hello!

    So back when I first started running Mystic, a couple years ago, I asked if there was a way to pull up the fullscreen editor in Mystic to be able to edit and create files, like news and text files. The answer was only using an MPL script. I could never seem to get it working.

    Has anything changed in that regard? Or is it still the same answer. I would like to be able to call it up, without reinventing a wheel.

    Yes, use the / command to bring up a menu and you will find it there as 'draw mode'. I think ctrl-t also brings it up from memory also.. :)

    You can do some nice ANSI art there and then drop back to the regular full screen editor.

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Zarnock@21:1/174 to KB2MOB on Tuesday, November 22, 2016 21:27:00
    On 11/17/16, KB2MOB said the following...
    "May The Force be With You, Harry Potter!" - Spock

    I'm afraid I don't have an answer. But I had to comment on this line. It literally made me LOL.

    Thank you for that.

    -Zarnock

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: The Zone BBS - zonebbs.net (21:1/174)
  • From Avon@21:1/101 to Zarnock on Wednesday, November 23, 2016 16:34:00
    On 11/22/16, Zarnock pondered and said...

    "May The Force be With You, Harry Potter!" - Spock

    I'm afraid I don't have an answer. But I had to comment on this line.
    It literally made me LOL.

    With the [small] level of OCD I think I have it also makes me smile but it really makes me want to correct it :)

    My wife does this sort of thing to me all the time - she knows my hot buttons
    - sigh... :)

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From bcw142@21:1/145.2 to KB2MOB on Tuesday, November 22, 2016 11:52:00
    On 11/17/16, KB2MOB said the following...
    So back when I first started running Mystic, a couple years ago, I asked if there was a way to pull up the fullscreen editor in Mystic to be able to edit and create files, like news and text files. The answer was only using an MPL script. I could never seem to get it working.
    Has anything changed in that regard? Or is it still the same answer. I would like to be able to call it up, without reinventing a wheel.

    Nope, the same, but g00r00 wrote an automessage.mps that uses it which can serve as an example. Look at the scripts/automessage.mps in A27+

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Mystic AlphaTest bcw142.zapto.org:2323 (21:1/145.2)
  • From bcw142@21:1/145 to KB2MOB on Tuesday, November 22, 2016 12:25:00
    On 11/17/16, KB2MOB said the following...
    So back when I first started running Mystic, a couple years ago, I asked if there was a way to pull up the fullscreen editor in Mystic to be able to edit and create files, like news and text files. The answer was only using an MPL script. I could never seem to get it working.
    Has anything changed in that regard? Or is it still the same answer. I would like to be able to call it up, without reinventing a wheel.
    Thanks!
    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Radio Freqs & Geeks BBS - Albany, NY (FN32DO) (21:1/176)

    The editor itself has changed a lot and is used by g00r00's own
    automessage.mps in the scripts/automessage.mps of Alpha27+ which can serve as an example of use. Spell checker is an option as well and it does full ANSI editing (and Mystic to ANSI convertion with the X save to a file).

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)
  • From tony@21:1/188 to All on Thursday, November 24, 2016 00:02:00
    I installed the spell checker just few minutes ago and it works very well.
    Just following the README file inside the file http://www.mysticbbs.com/downloads/mystic_spellcheck_v2.zip or watching the video https://www.youtube.com/watch?v=U7hQIRu57Kw for linux is quite easy
    just verify the presence of the correct library and link.

    Thanks

    Tony

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Friends BBS UK (21:1/188)
  • From Avon@21:1/101 to tony on Thursday, November 24, 2016 12:25:00
    On 11/24/16, tony pondered and said...

    I installed the spell checker just few minutes ago and it works very
    well. Just following the README file inside the file http://www.mysticbbs.com/downloads/mystic_spellcheck_v2.zip or watching the video https://www.youtube.com/watch?v=U7hQIRu57Kw for linux is quite easy just verify the presence of the correct library and link.

    Coolio... glad you are up and running Tony. Keep me posted on your .TIC adventures and I'll do my best to support you.

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From KB2MOB@21:1/176 to Avon on Tuesday, November 22, 2016 22:24:00
    On 11/23/16, Avon said the following...

    Yes, use the / command to bring up a menu and you will find it there as 'draw mode'. I think ctrl-t also brings it up from memory also.. :)

    You can do some nice ANSI art there and then drop back to the regular
    full screen editor.

    How would I save it as a file though? I don't see an option in the menu to do that.

    I'm trying to be able to call it with a menu command and use it like pico or nano to create new text files.

    Is there a command for Mystic that lets me do this with the full screen
    editor?

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Radio Freqs & Geeks BBS - Albany, NY (FN32DO) (21:1/176)
  • From Avon@21:1/101 to KB2MOB on Thursday, December 01, 2016 17:44:00
    On 11/22/16, KB2MOB pondered and said...

    Yes, use the / command to bring up a menu and you will find it there 'draw mode'. I think ctrl-t also brings it up from memory also.. :)

    You can do some nice ANSI art there and then drop back to the regular full screen editor.

    How would I save it as a file though? I don't see an option in the menu
    to do that.

    Good question I don't think g00r00 has made that an option. As far as I can
    see it's a tool to create ANSI art that is then in turn posted. I have a distant memory he spoke about wanting to something with this feature so it could be a kind of collaborative tool for ANSI artists but when many of them went to Facebook he may have opted not to finish it off... I'm honestly not sure if that's correct... but when he returns to the scene to do some further dev works it would be worth following up with him about this :)

    I'm trying to be able to call it with a menu command and use it like
    pico or nano to create new text files.

    OK, the issue will be saving it...

    Is there a command for Mystic that lets me do this with the full screen editor?

    Not from within the BBS but you can get at it from within MPL

    Here's what I found from the docs Gryphon has pulled together

    [snip]

    Function MSGEDITOR(0,Int,Int,Int,Bool,Str,Str) : Bool
    Procedure MSGEDITSET(Int,Str)
    Procedure MSGEDITGET(Int,Str)

    Added 3 new MPL functions: MsgEditor, MsgEditSet, MsgEditGet. These
    allow access to the internal Mystic msg editor (line and/or full)
    from within MPL. It even allows you to define wrap position and
    template to completely make it look like its not the Mystic editor!

    As a little hint the MsgEditSet and MsgEditGet stuff could be used
    to
    post process message text on posts. Like say for example you
    wanted
    to write a MPL that allows users to add Tag lines, you could do
    that
    by replacing the "Saving message..." prompt and using those two in
    order to modify the text before it is saved by Mystic!

    Rather than trying to explain it all, here is an example of all 3:

    Var
    Lines : Integer = 0;
    WrapPos : Integer = 79;
    MaxLines : Integer = 200;
    Forced : Boolean = False;
    Template : String = 'ansiedit';
    Subject : String = 'My subject';
    Count : Integer;
    Begin
    MsgEditSet (1, 'this is line 1');
    MsgEditSet (2, 'this is line 2!');

    Lines := 2;

    SetPromptInfo(1, 'MsgTo'); // if template uses &1 for "To:" display

    If MsgEditor(0, Lines, WrapPos, MaxLines, Forced, Template, Subject) Then Begin
    WriteLn('User selected to save.');
    WriteLn('There are ' + Int2Str(Lines) + ' of text in buffer:');

    For Count := 1 to Lines Do
    WriteLn(MsgEditGet(Count));

    Pause;
    End Else Begin
    WriteLn('User aborted the edit.');

    Pause;
    End
    End

    [snip]

    Best, Paul

    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: Agency BBS | telnet://agency.bbs.geek.nz (21:1/101)
  • From Gryphon@21:1/120 to Avon on Friday, December 09, 2016 09:41:00
    On 12/01/16, Avon said the following...

    On 11/22/16, KB2MOB pondered and said...

    Yes, use the / command to bring up a menu and you will find it t 'draw mode'. I think ctrl-t also brings it up from memory also..

    You can do some nice ANSI art there and then drop back to the re full screen editor.

    How would I save it as a file though? I don't see an option in the me to do that.

    Good question I don't think g00r00 has made that an option. As far as I can see it's a tool to create ANSI art that is then in turn posted. I
    have a distant memory he spoke about wanting to something with this feature so it could be a kind of collaborative tool for ANSI artists but when many of them went to Facebook he may have opted not to finish it off... I'm honestly not sure if that's correct... but when he returns to the scene to do some further dev works it would be worth following up
    with him about this :)

    I'm trying to be able to call it with a menu command and use it like pico or nano to create new text files.

    OK, the issue will be saving it...

    Is there a command for Mystic that lets me do this with the full scre editor?

    Not from within the BBS but you can get at it from within MPL

    Here's what I found from the docs Gryphon has pulled together


    If you look at g00r00's automessage.mps you'll see that it uses the text
    editor and it saves a file for the automessage. That mpl uses a defined file for writing to. But I wrote a quick and dirty editor mpl that will pass a filename as a parameter, so you can read from or write to any desired file.

    if you browse to cyberia.darktech.org:8080, find the (F)ree Files >> free/mpl >> vi.mps, you can download it and use that as a basis an editor that will
    save to any filename you desire.

    One thing though, is I don't think it saves the ANSI color codes. It might save in the MCI codes tho.

    "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 bcw142@21:1/145 to KB2MOB on Thursday, December 01, 2016 07:36:00
    On 11/22/16, KB2MOB said the following...
    You can do some nice ANSI art there and then drop back to the regular full screen editor.

    How would I save it as a file though? I don't see an option in the menu
    to do that.

    X to save the file to Mystic root. Generally I do the save then look at it again and do the X to save to a file. Filename can be .ans, .txt or whatever. It will 'download' fine via nodespy and truly download from other boards that way. There is also /u to upload files including ANSI. Generally easier if you use an extension or you have to modify the mask as it's setup for *.* by default.

    --- Mystic BBS v1.12 A31 (Raspberry Pi)
    * Origin: Mystic Pi BBS bcw142.zapto.org (21:1/145)