• src/conio/win32cio.c

    From deuce@VERT to CVS commit on Tue Sep 23 17:18:10 2014
    src/conio win32cio.c 1.99 1.100
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv14768

    Modified Files:
    win32cio.c
    Log Message:
    Fix bug reported by DigitalMan in Win32 console mode where if the screen size is changed so that the new X is larger or smaller than the old X *and* the
    new Y is different to the old Y in the opposite direction (ie: Old X is smaller and new Y is larger), the screen would not change size, but the internal state would act as though it had.

    Since SetConsoleScreenBufferSize() cannot set the screen buffer smaller than the window in either dimension, and SetConsoleWindowInfo() cannot set the window
    larger than the screen buffer size in either direction, all resizing calls would
    fail, but the internal state would still be updated.

    This change prevents the size inversion calls from being used, and does not update the internal state on failure of any call.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Ragnarok@ragnarok@docksud.com.ar to deuce on Tue Sep 23 23:29:10 2014
    El 23/09/14 21:18, deuce escribió:
    src/conio win32cio.c 1.99 1.100
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv14768

    Modified Files:
    win32cio.c
    Log Message:
    Fix bug reported by DigitalMan in Win32 console mode where if the screen size is changed so that the new X is larger or smaller than the old X *and* the new Y is different to the old Y in the opposite direction (ie: Old X is smaller
    and new Y is larger), the screen would not change size, but the internal state
    would act as though it had.

    Since SetConsoleScreenBufferSize() cannot set the screen buffer smaller than the window in either dimension, and SetConsoleWindowInfo() cannot set the window
    larger than the screen buffer size in either direction, all resizing calls would
    fail, but the internal state would still be updated.

    This change prevents the size inversion calls from being used, and does not update the internal state on failure of any call.


    can you append the url to the diff on the footer of mail that send on
    commits?

    like this:

    http://cvs.synchro.net/cgi-bin/viewcvs.cgi/src/conio/win32cio.c?r1=1.99&r2=1.100&pathrev=HEAD

    i think that is very useful just click and quick go to the patch if the
    commit was interest people that read the mail.

    thanks! =)
  • From deuce@VERT to CVS commit on Wed Nov 12 23:40:55 2014
    src/conio win32cio.c 1.100 1.101
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv3785

    Modified Files:
    win32cio.c
    Log Message:
    Set cio_textinfo.screenwidth and cio_textinfo.screenheight before calling win32_textmode() since they are used to determine how the screen buffer
    needs to be resized before changing the window size.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From deuce@VERT to CVS commit on Sun Nov 30 14:59:00 2014
    src/conio win32cio.c 1.100 1.101
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv3785

    Modified Files:
    win32cio.c
    Log Message:
    Set cio_textinfo.screenwidth and cio_textinfo.screenheight before calling win32_textmode() since they are usedto determine how the screen buffer
    needs to be resized before changing the window size.



    þ Synchronet þ Vertrauen þ Home of Sy
  • From rswindell@VERT to CVS commit on Thu Oct 26 13:39:00 2017
    src/conio win32cio.c 1.102 1.103
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv11540

    Modified Files:
    win32cio.c
    Log Message:
    Added range checks when initializing textinfo.screenwidth and screeheight (don't wrap around if value is > 255) - presumably these textinfo struct members were left as unsigned chars (8-bits) to preserve compatiblity with legacy conio apps, but I'm not sure. Perhaps we could increase these to
    at least 16-bit integers or bigger in the future, in which case these range checks would need to be removed or replaced.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From rswindell@VERT to CVS commit on Sat Nov 4 19:22:03 2017
    src/conio win32cio.c 1.103 1.104
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv23651

    Modified Files:
    win32cio.c
    Log Message:
    Fixed potential uninitialized pointer return value in win32_getcliptext().

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Mon Feb 5 10:14:13 2018
    src/conio win32cio.c 1.105 1.106
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv23346

    Modified Files:
    win32cio.c
    Log Message:
    Alas, SetConsoleScreenBufferInfoEx() is new for Vista/Server 2008, so
    isn't available to mingw. No palette setting for Win32 console. :-(



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Mon Feb 5 10:52:27 2018
    src/conio win32cio.c 1.106 1.107
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv27233

    Modified Files:
    win32cio.c
    Log Message:
    Fix disabled code.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Apr 17 10:01:39 2020
    src/conio win32cio.c 1.109 1.110
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv16982

    Modified Files:
    win32cio.c
    Log Message:
    Get the clipboard in UTF-8



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Apr 17 17:53:30 2020
    src/conio win32cio.c 1.110 1.111
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv28815

    Modified Files:
    win32cio.c
    Log Message:
    Fix Win32 copytext() implementation.
    The Win32 getcliptext() implementation is apparently smoking crack though...



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From deuce@VERT to CVS commit on Fri Apr 17 20:51:12 2020
    src/conio win32cio.c 1.111 1.112
    Update of /cvsroot/sbbs/src/conio
    In directory cvs:/tmp/cvs-serv23881

    Modified Files:
    win32cio.c
    Log Message:
    Fix up some types.



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue May 23 13:05:13 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/60b8f649e065f029f9346021
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Fix typo in last commit
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows)@VERT to Git commit to main/sbbs/master on Sat Jun 3 23:50:10 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/66d352bac8575a3ec039c8d3
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Fix warning C4101: 'i': unreferenced local variable
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Feb 7 11:57:30 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/d0e73f2d65bbe706abe73a74
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Fix mingw32 warning... export variable correctly.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Oct 23 11:24:25 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/80598cfdc27549ff5a49a436
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Attempt to re-enable palette setting on Win32

    This was disabled due to mingw32 limitations, and we use mingw64 now
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Oct 23 14:03:34 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/be9f0a1a670736f3a02cebf5
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    The MSVC builds apparently target some ancient API

    So we need to define the Windows API ourselves. :(
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Wed Oct 23 17:50:50 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/22c2c0a67dd8254374cc3510
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Some fixups to not crash and stuff.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 24 07:11:11 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/088948e0e05c5e6a491065ca
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    <nelgin> Wont crash if it wont build.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 24 08:19:13 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/ecd61d64935cf01e1a04c147
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Deal with consile resizing

    This doesn't fix the terrible crap Windows does to the contents of
    the console yet though (sigh).
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 24 18:41:27 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/0f87d4e2881367a2c7fded9c
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Keep a local copy of the screen for windows

    Because it screws up the display when you resize the window.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 24 20:36:21 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/0bf419eba0d14238b02d3eca
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Some more Win32 Terminal fixes

    Almost there, the main issue remaining is when running from a
    command-line, it sometimes "unwraps" lines.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Thu Oct 24 22:27:02 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/714e0ec073f0bbd9023d7d48
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Deal with more windows console braindeadedness.

    The window and the screen buffer are two different things... the
    screen buffer must always be the same size as or larger than the
    window. Further, there are times where it's not possible to resize
    the windown programatically (new terminal for example).

    There still appears to be a stupid bug in what I assume is the
    Windows Terminal LCF flag implementation which causes writes to
    the beginning of a line that occur after a write to the end of the
    previous line to be in the wrong position. If it's not the LCF flag
    (which isn't turned on), it's in their wrapping thing which is extra
    irritating since I explocitly turn that off.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net
  • From Deucе@VERT to Git commit to main/sbbs/master on Tue Dec 31 13:48:00 2024
    https://gitlab.synchro.net/main/sbbs/-/commit/1b7bb63aa38b5ae37272a8db
    Modified Files:
    src/conio/win32cio.c
    Log Message:
    Explicitly use the "ANSI" console read/write functions.

    Where we use the AsciiChar memory of the returned struct.
    ---
    ï¿­ Synchronet ï¿­ Vertrauen ï¿­ Home of Synchronet ï¿­ [vert/cvs/bbs].synchro.net