disable some debug prints

[?]
May 21, 2022, 5:46 AM
PYGMASTVHDTGX3LDTL364UWXEHVSWQ7STAJLZZI5YY6EA6EEICOAC

Dependencies

  • [2] 3CSIZJ33 clearer comments
  • [3] KJKKASHZ reduce ambitions a bit: page up/down need not start screen from the middle of a line
  • [4] TRNWIQN6 more precise height calculation when scrolling up as much as possible while keeping cursor on screen
  • [5] MGT5FTJ3 first stab at supporting wrapping in cursor up
  • [6] 2POFQQLW keep cursor on screen when pressing 'down'
  • [7] XNFTJHC4 split keyboard handling between Text and Drawing
  • [8] DLQMM265 scroll past first page
  • [9] 5ED3YGHW planning out cursor up/down over wrapped lines
  • [10] DXT4QTAH a few more integer coordinates
  • [11] PR4KIAZD first stab at equally hacky cursor down support
  • [12] SVJZZDC3 snapshot - no, that's all wrong
  • [13] 537TQ2QN some more logging
  • [14] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [15] H2DPLWMV snapshot: wrapping long lines at word boundaries
  • [16] C42QQZSF another piece of support for line wrapping in cursor up
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 230
    [5.4030][5.297:355]()
    print('up', Cursor_pos, Top_screen_line_starting_pos)
    [5.4030]
    [5.1]
    --? print('up', Cursor_pos, Top_screen_line_starting_pos)
  • replacement in text.lua at line 233
    [5.140][5.140:198]()
    print('cursor is at first screen line of its line')
    [5.140]
    [2.1]
    --? print('cursor is at first screen line of its line')
  • replacement in text.lua at line 247
    [5.359][5.356:463]()
    print('previous screen line starts at pos '..tostring(screen_line_starting_pos)..' of its line')
    [5.359]
    [5.302]
    --? print('previous screen line starts at pos '..tostring(screen_line_starting_pos)..' of its line')
  • replacement in text.lua at line 250
    [5.480][5.464:576]()
    print('pos of top of screen is also '..tostring(Top_screen_line_starting_pos)..' of the same line')
    [5.480]
    [5.480]
    --? print('pos of top of screen is also '..tostring(Top_screen_line_starting_pos)..' of the same line')
  • replacement in text.lua at line 262
    [2.168][5.495:557](),[5.742][5.495:557]()
    print('cursor is NOT at first screen line of its line')
    [2.168]
    [5.860]
    --? print('cursor is NOT at first screen line of its line')
  • replacement in text.lua at line 265
    [5.660][5.660:804]()
    print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
    [5.660]
    [5.804]
    --? print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
  • replacement in text.lua at line 268
    [5.978][5.978:1073]()
    print('also setting pos of top of screen to '..tostring(Top_screen_line_starting_pos))
    [5.978]
    [5.1073]
    --? print('also setting pos of top of screen to '..tostring(Top_screen_line_starting_pos))
  • replacement in text.lua at line 272
    [5.1256][5.1256:1312]()
    print('cursor pos is now '..tostring(Cursor_pos))
    [5.1256]
    [5.268]
    --? print('cursor pos is now '..tostring(Cursor_pos))
  • replacement in text.lua at line 278
    [5.360][5.360:421]()
    print('down: cursor at final screen line of its line')
    [5.360]
    [5.421]
    --? print('down: cursor at final screen line of its line')
  • replacement in text.lua at line 285
    [5.723][5.723:751]()
    print(Cursor_pos)
    [5.723]
    [5.751]
    --? print(Cursor_pos)
  • replacement in text.lua at line 289
    [5.789][5.64:121]()
    print(Cursor_line, Cursor_pos, Screen_bottom_line)
    [5.789]
    [5.789]
    --? print(Cursor_line, Cursor_pos, Screen_bottom_line)
  • replacement in text.lua at line 291
    [5.836][3.1:84]()
    print('screen top before:', Screen_top_line, Top_screen_line_starting_pos)
    [5.836]
    [5.836]
    --? print('screen top before:', Screen_top_line, Top_screen_line_starting_pos)
  • replacement in text.lua at line 293
    [5.874][3.85:130]()
    print('scroll up preserving cursor')
    [5.874]
    [5.874]
    --? print('scroll up preserving cursor')
  • replacement in text.lua at line 295
    [5.922][3.131:213]()
    print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)
    [5.922]
    [5.4899]
    --? print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)
  • replacement in text.lua at line 297
    [5.4909][4.1:64]()
    print('=>', Cursor_line, Cursor_pos, Screen_bottom_line)
    [5.4909]
    [5.923]
    --? print('=>', Cursor_line, Cursor_pos, Screen_bottom_line)
  • replacement in text.lua at line 300
    [5.983][5.983:1045]()
    print('cursor is NOT at final screen line of its line')
    [5.983]
    [5.1045]
    --? print('cursor is NOT at final screen line of its line')
  • replacement in text.lua at line 303
    [5.1247][5.1247:1391]()
    print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
    [5.1247]
    [5.1391]
    --? print('switching pos of screen line at cursor from '..tostring(screen_line_starting_pos)..' to '..tostring(new_screen_line_starting_pos))
  • replacement in text.lua at line 306
    [5.1564][5.1564:1620]()
    print('cursor pos is now '..tostring(Cursor_pos))
    [5.1564]
    [5.122]
    --? print('cursor pos is now '..tostring(Cursor_pos))
  • replacement in text.lua at line 308
    [5.158][4.65:108]()
    print('scroll up preserving cursor')
    [5.158]
    [5.1620]
    --? print('scroll up preserving cursor')
  • replacement in text.lua at line 310
    [5.1666][4.109:189]()
    print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)
    [5.1666]
    [5.1313]
    --? print('screen top after:', Screen_top_line, Top_screen_line_starting_pos)
  • replacement in text.lua at line 357
    [4.266][4.266:383]()
    print('cursor pos '..tostring(Cursor_pos)..' is on the #'..tostring(cursor_pos_screen_lines)..' screen line down')
    [4.266]
    [4.383]
    --? print('cursor pos '..tostring(Cursor_pos)..' is on the #'..tostring(cursor_pos_screen_lines)..' screen line down')
  • replacement in text.lua at line 362
    [5.703][4.497:515]()
    print('y', y)
    [5.703]
    [4.515]
    --? print('y', y)
  • replacement in text.lua at line 372
    [4.903][4.903:927]()
    print('height:', h)
    [4.903]
    [4.927]
    --? print('height:', h)