• Editor quoted text wrapping

    From Nightfox@VERT/DIGDIST to Digital Man on Tuesday, December 13, 2022 22:44:53
    Re: Slyedit
    By: Digital Man to Nightfox on Tue Dec 13 2022 08:19 pm

    QUOTES.TXT I'll have to look into where I can check that. I imagine
    I can check xtrn_area.editor[user.editor].settings for that?

    Yes, the XTRN_QUOTEWRAP bit-flag.

    There's also an option for the number of columns to wrap to (a number, or the user's terminal width). Is there a way to check for that value in JS?

    Nightfox

    ---
    þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Tuesday, December 13, 2022 23:34:01
    Re: Editor quoted text wrapping
    By: Nightfox to Digital Man on Tue Dec 13 2022 10:44 pm

    Re: Slyedit
    By: Digital Man to Nightfox on Tue Dec 13 2022 08:19 pm

    QUOTES.TXT I'll have to look into where I can check that. I imagine
    I can check xtrn_area.editor[user.editor].settings for that?

    Yes, the XTRN_QUOTEWRAP bit-flag.

    There's also an option for the number of columns to wrap to (a number, or the user's terminal width). Is there a way to check for that value in JS?

    Not easily: that setting isn't directly modeled). However, you could use the cnflib.js to load xtrn.cnf and find that setting, or wait until v3.20a, where that setting is (much) easier to parse from xtrn.ini (converted form the old xtrn.cnf), OR just assume it's 0 (wrap to user's terminal width). That's likely the most common setting anyway.
    --
    digital man (rob)

    Rush quote #1:
    Danger plus survival equals fun. - Neil Peart
    Norco, CA WX: 43.0øF, 88.0% humidity, 0 mph NE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nightfox@VERT/DIGDIST to Digital Man on Wednesday, December 14, 2022 08:27:11
    Re: Editor quoted text wrapping
    By: Digital Man to Nightfox on Tue Dec 13 2022 11:34 pm

    QUOTES.TXT I'll have to look into where I can check that. I
    imagine I can check xtrn_area.editor[user.editor].settings for
    that?

    Yes, the XTRN_QUOTEWRAP bit-flag.

    There's also an option for the number of columns to wrap to (a number,
    or the user's terminal width). Is there a way to check for that value
    in JS?

    Not easily: that setting isn't directly modeled). However, you could use the cnflib.js to load xtrn.cnf and find that setting, or wait until v3.20a, where that setting is (much) easier to parse from xtrn.ini (converted form the old xtrn.cnf), OR just assume it's 0 (wrap to user's terminal width). That's likely the most common setting anyway.

    OK, thanks.
    I may look into using cnflib.js for now to see if I can get the setting that way.

    Nightfox

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