• Slyedit Ice

    From Mortifis@VERT/ALLEYCAT to Nightfox on Sunday, July 21, 2019 11:40:45
    Hey, brah, logged onto my board on my phone
    using Android JuiceSSH, and went to send a
    message using SlyEdit Ice which errorred that
    slyedit requires 80 width, cycled twice the
    dropped the connection. Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From echicken@VERT/ECBBS to Mortifis on Sunday, July 21, 2019 11:40:00
    Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 11:40:45

    using Android JuiceSSH, and went to send a
    message using SlyEdit Ice which errorred that
    slyedit requires 80 width, cycled twice the
    dropped the connection. Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    Adding "COLS 80" to the Access Requirements for that editor should do (eg. ANSI AND COLS 80). I'm not
    sure if there's a helpful message to the user if they don't meet the requirements, or if it falls back on
    the basic editor, etc.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From Nightfox@VERT/DIGDIST to Mortifis on Sunday, July 21, 2019 11:47:49
    Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 11:40 am

    Hey, brah, logged onto my board on my phone
    using Android JuiceSSH, and went to send a
    message using SlyEdit Ice which errorred that
    slyedit requires 80 width, cycled twice the
    dropped the connection. Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    That wouldn't be a very simple fix. SlyEdit uses a width of at least 80 to display the top & bottom informational lines, so in order to support a width of less than 80, the top & bottom lines would need to be reformatted to fit less than 80 columns, and the code in SlyEdit would need to be changed to fit that width.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Mortifis@VERT/ALLEYCAT to Nightfox on Sunday, July 21, 2019 19:52:32
    Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 11:40 am

    Hey, brah, logged onto my board on my phone
    using Android JuiceSSH, and went to send a
    message using SlyEdit Ice which errorred that
    slyedit requires 80 width, cycled twice the
    dropped the connection. Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    That wouldn't be a very simple fix. SlyEdit uses a width of at least 80 to display the top & bottom informational lines, so in order to support a width of less than 80, the top & bottom lines would need to be reformatted to fit less than 80 columns, and the code in SlyEdit would need to be changed to fit that width.

    The only time this is an issue is if a new user signs up one a device with less than 8- columns (my android phone using JuiceSSH has a width of 38) and has selected SlyEdit as the editor and then tries to leave a feedback to the SysOP, it will fail then drop the call and SBBS will delete the new user account ...

    so I added 5 lines to SlyEdit.js

    inside line 156 if(console.screen_columns < 80)
    {
    console.print("\1n\r\n\1h\1w" + EDITOR_PROGRAM_NAME + " requires a terminal width of at least 80 characters.\1n\r\n\1p");

    var new_term = confirm("Would you like to use the internal editor instead");
    if(new_term) {
    console.print("Editor Changed to Internal!");
    user.editor = ""; // blank defaults to internal editor
    }
    exit(1); // 1: Aborted
    }

    I tested this and it seems to have the solved the issue.


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Nightfox@VERT/DIGDIST to Mortifis on Sunday, July 21, 2019 16:20:00
    Re: Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 07:52 pm

    That wouldn't be a very simple fix. SlyEdit uses a width of at least
    80 to display the top & bottom informational lines, so in order to
    support a width of less than 80, the top & bottom lines would need to
    be reformatted to fit less than 80 columns, and the code in SlyEdit
    would need to be changed to fit that width.

    The only time this is an issue is if a new user signs up one a device with less than 8- columns (my android phone using JuiceSSH has a width of 38) and has selected SlyEdit as the editor and then tries to leave a feedback to the SysOP, it will fail then drop the call and SBBS will delete the new user account ...

    ...

    exit(1); // 1: Aborted

    I tested this and it seems to have the solved the issue.

    Interesting.. That still aborts with a non-zero value, so I'd still expect that to fail.

    I think a better way might be to edit the ARS requirements for SlyEdit in SCFG to be "ANSI AND COLS 80", so if their terminal width is below 80, they wouldn't be able to choose SlyEdit.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Mortifis on Sunday, July 21, 2019 16:26:52
    Re: Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 07:52 pm

    The only time this is an issue is if a new user signs up one a device with less than 8- columns (my android phone using JuiceSSH has a width of 38) and has selected SlyEdit as the editor and then tries to leave a feedback

    There are better terminal programs to use.. For instance, there is an fTelnet for Android that supports 80 columns.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Mortifis@VERT/ALLEYCAT to Nightfox on Sunday, July 21, 2019 21:11:51
    Re: Re: Slyedit Ice
    By: Mortifis to Nightfox on Sun Jul 21 2019 07:52 pm

    The only time this is an issue is if a new user signs up one a device with less than 8- columns (my android phone using JuiceSSH has a width of 38) and has selected SlyEdit as the editor and then tries to leave a feedback

    There are better terminal programs to use.. For instance, there is an fTelnet for Android that supports 80 columns.

    I have used, and just tried using ftelnet on my Samsung Galaxy S10 and it doesn't and never has worked for me ... any keyboard does not enter text at all :-( I like JuiceSSH, it has many options include SSH :) anyway ... yes SlyEdit exits with an abort! but that little code addition does change the editor to Internal and immediately drops into it after aborting. I suppose I could add the ARS and change the default editor to Internal ... was just a thought.

    Thanks :-)

    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From mark lewis@VERT to Nightfox on Monday, July 22, 2019 03:04:12
    On 2019 Jul 21 11:47:48, you wrote to Mortifis:

    [...] Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    That wouldn't be a very simple fix. SlyEdit uses a width of at least 80
    to
    display the top & bottom informational lines, so in order to support a width of less than 80, [...]

    i read the above as asking for 1) a condition check and exiting gracefully back
    to the BBS or 2) provide a prompt to use a different editor... 1 shouldn't be that hard to do, should it? ;)

    )\/(ark

    Once men turned their thinking over to machines in the hope that this would set
    them free. But that only permitted other men with machines to enslave them.
    ... We start out wet, hungry, and naked. Your current complaint?
    ---
    * Origin: (1:3634/12.73)
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Mortifis@VERT/ALLEYCAT to mark lewis on Monday, July 22, 2019 08:42:47
    On 2019 Jul 21 11:47:48, you wrote to Mortifis:

    [...] Anyway to put a
    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    That wouldn't be a very simple fix. SlyEdit uses a width of at least 80
    to
    display the top & bottom informational lines, so in order to support a width of less than 80, [...]

    i read the above as asking for 1) a condition check and exiting gracefully back
    to the BBS or 2) provide a prompt to use a different editor... 1 shouldn't be that hard to do, should it? ;)


    I understand his response, he thought I meant changing the whole editor to support varying columns widths and rows ... I dislike hacking anyone else's code, especially since my less-than-novice level abilities muck things up, but I threw in 5 lines to add a prompt asking to change to the internal editor; which is auto-scalable. Nightfox did add some ARS and other stuffies so I am happy :-)


    My doctor said I have the body of a 25 year old ... and the mind of a 10 :-/

    ---
    þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81
  • From Nightfox@VERT/DIGDIST to mark lewis on Monday, July 22, 2019 09:59:33
    Re: Slyedit Ice
    By: mark lewis to Nightfox on Mon Jul 22 2019 03:04 am

    condition check and exit gracefully back to
    the board or give a prompt to change to
    editor that supports urrent terminal width?

    That wouldn't be a very simple fix. SlyEdit uses a width of at
    least 80
    to
    display the top & bottom informational lines, so in order to support
    a width of less than 80, [...]

    i read the above as asking for 1) a condition check and exiting gracefully back to the BBS or 2) provide a prompt to use a different editor... 1 shouldn't be that hard to do, should it? ;)

    I may have read it wrong, I initially read it as making SlyEdit support 40 columns. But now I see he was talking about changing to an editor that supports the terminal width.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Mortifis on Monday, July 22, 2019 10:06:16
    Re: Re: Slyedit Ice
    By: Mortifis to mark lewis on Mon Jul 22 2019 08:42 am

    I understand his response, he thought I meant changing the whole editor to support varying columns widths and rows ... I dislike hacking anyone

    Yep, sorry I misunderstood your question at first. I hadn't really ever thought about switching to another editor from within an editor, but that's one solution, if it works for you.

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com