• src/sbbs3/listfile.cpp

    From deuce@VERT to CVS commit on Tuesday, April 28, 2015 00:45:41
    src/sbbs3 listfile.cpp 1.55 1.56
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv25300

    Modified Files:
    listfile.cpp
    Log Message:
    The file header box attribute configured in ctrl/attr.cfg was only used to
    draw the top line and first left vertical row in a file list box. The rest
    of the box was drawn in whatever attribute text.dat left it in.




    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Monday, August 17, 2015 17:41:10
    src/sbbs3 listfile.cpp 1.57 1.58
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv11544

    Modified Files:
    listfile.cpp
    Log Message:
    When listing files in a file area (directory) configured as "FREE" (no cost to downlaod), and the "check for file existence" option is enabled, then get the file size as well and display that instead of the credit value. This fixes the problem with files whose size has changed after they were uploaded or added
    to the filebase. Directories which are not free still displayed with each file's credit value (since that may not have any correlation with the file size).
    Display file sizes and credit values in a shorter more easy to read format
    with suffixes for gigabytes (G), megabytes (M), kilobytes (K), and bytes (B). Using an uppercase 'K' now to be more consistent with modern conventions
    for abbreviating Kilobytes/Kibibyte (1024 bytes).


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Monday, August 17, 2015 17:53:46
    src/sbbs3 listfile.cpp 1.58 1.59
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/tmp/cvs-serv13305

    Modified Files:
    listfile.cpp
    Log Message:
    Fix cosmetic error introduced in previous commit: use the correct attribute code for the size/credit value.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From rswindell@VERT to CVS commit on Monday, July 23, 2018 15:41:09
    src/sbbs3 listfile.cpp 1.61 1.62
    Update of /cvsroot/sbbs/src/sbbs3
    In directory cvs:/home/rswindell/sbbs/src/sbbs3

    Modified Files:
    listfile.cpp
    Log Message:
    Fix bug introduced in rev 1.60: when searching for a file and a single file matches the search spec, the 'D' batch-flagging command would invoke the downloadfile() method which confusingly, doesn't actually download (send)
    the file, but instead performs all the post-download functions needed. So
    the user would just see "<filename> sent." and possibly lose some credits without actually receiving the file.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to sbbs/master on Sunday, September 06, 2020 00:43:45
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/a3c0f031ac017b95093a21f7
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Deleting a file's extended description would try to delete some other file too

    This is a "forever bug". I guess at one time I stored each file's extended description in a separate file? I don't know, but this remove() call is
    clearly wrong.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, April 24, 2021 00:28:03
    https://gitlab.synchro.net/main/sbbs/-/commit/81e759b6bbdebbddfd983368
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Reverse the order of the Delete File and Remove Credits prompts

    To match the Remove file command sequence (for consistency).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, April 24, 2021 00:59:46
    https://gitlab.synchro.net/main/sbbs/-/commit/02ca431ee364dc555b9dc01a
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Resolve gcc warning

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 25, 2021 01:05:52
    https://gitlab.synchro.net/main/sbbs/-/commit/7ec8bd2dae5fe53c83ab03aa
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    The 'T' command key at the batch flag now toggle extended file descriptions

    This is pretty convenient and handy (rather than having to use &E or the equivalent command from the file xfer menu and then re-list files).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, April 25, 2021 19:36:21
    https://gitlab.synchro.net/main/sbbs/-/commit/c169ed2b22fadbfd445eed9a
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Don't display batch flag with same color as description.

    Display the batch flag letter with the same color as the filename, but inverted intensity. The batch flag shouldn't stand-out (be bright) anyway, but the main reason is because I'm changing the default file description attribute to be lightgray instead of dark green.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, April 26, 2021 22:34:45
    https://gitlab.synchro.net/main/sbbs/-/commit/fbbdb154bfb24bcebd218d08
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    When toggling extended file descriptions with the 'T' command, save user

    Save the user's "misc" flags to the userbase when they use the 'T' command from the batch flagging prompt. Without this change, the option would automatically revert if/when the user record was re-read (which can happen at any time).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, April 28, 2021 00:51:57
    https://gitlab.synchro.net/main/sbbs/-/commit/532355425a6a70596eac7efa
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Search of word in descriptions should match filenames too.

    Especially now that now all files even have descriptions (e.g. when super long filenames suffice).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Monday, May 03, 2021 00:33:29
    https://gitlab.synchro.net/main/sbbs/-/commit/e5e5c1efe7930443ac56b751
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Previous file support from the [R]emove and [D]ownload commands.

    More support for moving backwards through file searches/listing types.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Thursday, May 06, 2021 22:51:59
    https://gitlab.synchro.net/main/sbbs/-/commit/a9214ac450a5a8d71daa8494
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Change CRLF before batch flag prompt to a conditional new-line.

    If a sysop wants a *blank* line before the batch flag prompt, they can put that (or a conditional blank line, even better) in their text.dat (BatchFlagPrompt). For now, I'm thinking no blank line before the prompt is better use of the screen.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, May 08, 2021 15:23:02
    https://gitlab.synchro.net/main/sbbs/-/commit/fd649bf8c381fa6d7d4394b6
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Make it a conditional *blank* line before the batch flag prompt

    It's very tricky to defeat the auto-pause to have your own custom prompt at rows-1. So going back to having a blank line before the batch prompt.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, May 15, 2021 20:51:09
    https://gitlab.synchro.net/main/sbbs/-/commit/cdedcb5a2eab52a861108026
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Use correct string for file path when removing file for non dir-ops

    Fix issue reported by Jay Crutti.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Saturday, May 15, 2021 23:09:56
    https://gitlab.synchro.net/main/sbbs/-/commit/caed3600410b1a8a74a68c95
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Simplify the file remove/delete logic here.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, May 16, 2021 16:47:09
    https://gitlab.synchro.net/main/sbbs/-/commit/be0c953e10cb6d3485093400
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Don't attempt to remove files that have already been removed

    This is the likely cause of Phil's reported errors when removing files: access=-110 info=smb_removefile name not found

    The only way I was able to reproduce these errors was to attempt to remove the same file multiple times in the same file listing. In other worse, use 'R', remove a file, then 'P'revious back to the first file and try to remove it again. Or to remove it a file from the batch flag prompt and then attempt to remove it again. <shrug>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, May 30, 2021 02:38:52
    https://gitlab.synchro.net/main/sbbs/-/commit/df49b43613693fd8b710972c
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Beautify the file list files (e.g. NEWFILES.TXT) a bit

    Use the file size estimates rather than actual byte values (to keep lines < 80 chars).
    Use file name file summary/description is blank or doesn't exist.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, May 30, 2021 21:52:57
    https://gitlab.synchro.net/main/sbbs/-/commit/9fcce522c52d7972f15b9fc8
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Create (export to text) file lists faster

    - Don't read/load extended descriptions
    - Don't query each file size (use file cost from database)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Wednesday, January 12, 2022 19:11:24
    https://gitlab.synchro.net/main/sbbs/-/commit/618d552ae197521a58c99d2d
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Search file's tags, author, and author's group (if available)

    When searching descriptions for text, include these new metadata fields in the content to search.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Tuesday, January 18, 2022 01:16:22
    https://gitlab.synchro.net/main/sbbs/-/commit/6d6925b38c6db748cf66101a
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Don't display "blank" extended description in listings

    If an extended description contains nothing but Ctrl-A codes and white-space, don't display it in a file listing (in place of the normal short description).

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to Git commit to main/sbbs/master on Sunday, March 13, 2022 23:33:54
    https://gitlab.synchro.net/main/sbbs/-/commit/f7489c8917e1e3f1824c23df
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Save the node status (with "downloading" action value)

    More immediately. I wanted to debug the ETA value here and the action wasn't written to the node file here, but later.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (in GitKraken)@VERT to Git commit to main/sbbs/master on Thursday, March 02, 2023 18:56:50
    https://gitlab.synchro.net/main/sbbs/-/commit/345bd83b12796f61b60dd2ea
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Use the new putnode_downloading() function

    Eliminate some copy/pasta.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Friday, May 05, 2023 19:55:33
    https://gitlab.synchro.net/main/sbbs/-/commit/957a1d7ff51d93b5ded4a267
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Use '[' Ctrl-A code to move cursor to first column, not a bare '\r'

    A bare '\r' doesn't move the cursor to the first column in PETSCII terminals. The '[' Ctrl-A code moves the cursor to the first column with multiple cursor-left sequences, if necessary.

    Ideally this sequence would be part of the text.dat string instead of hard-coded here.

    This fixes issue #561

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Monday, December 25, 2023 23:57:47
    https://gitlab.synchro.net/main/sbbs/-/commit/9bd53602a57953c9d07ac990
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Another miss in the metadata -> auxdata renaming

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sunday, March 10, 2024 14:52:39
    https://gitlab.synchro.net/main/sbbs/-/commit/e63a96c738ecc903b53c6b32
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Removing files via batch flag prompt, don't try to remove cdt for free files

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Monday, March 11, 2024 22:08:55
    https://gitlab.synchro.net/main/sbbs/-/commit/21138cb29309557946dea460
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Actually use the new FREE text.dat string in file listings

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sunday, March 17, 2024 00:34:50
    https://gitlab.synchro.net/main/sbbs/-/commit/00a300a10a8291c98831b4bc
    Modified Files:
    src/sbbs3/listfile.cpp
    Log Message:
    Resolve a couple GCC warnings of impossible conditions

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net