Skip to content
Snippets Groups Projects
  • Rob Swindell's avatar
    2ca49b58
    Fix an off-by-one line bug in the "local side" of the split-screen-chat. · 2ca49b58
    Rob Swindell authored
    This bug would cause the split-screen separator to repeat when the local
    side scrolled (if the terminal was 24 rows, bug didn't happen when local
    screen was 25 rows).
    
    This bug appears to have "always" been there. The split-screen separator is
    80 columns, so that forced a line wrap on the subsequent CRLF and the local_y
    value was "off-by-one". Just use ansi_gotoxy() instead and put the cursor
    where you think it is.
    
    Also, support > 24 row terminals for longer chat history (bottom half only).
    2ca49b58
    History
    Fix an off-by-one line bug in the "local side" of the split-screen-chat.
    Rob Swindell authored
    This bug would cause the split-screen separator to repeat when the local
    side scrolled (if the terminal was 24 rows, bug didn't happen when local
    screen was 25 rows).
    
    This bug appears to have "always" been there. The split-screen separator is
    80 columns, so that forced a line wrap on the subsequent CRLF and the local_y
    value was "off-by-one". Just use ansi_gotoxy() instead and put the cursor
    where you think it is.
    
    Also, support > 24 row terminals for longer chat history (bottom half only).