~smlavine/navipage#12: 
Handle some control characters before rendering

If viewing a file with the control character ^L, things get a bit wonky with scrolling. Try it out with this file (line 107).

I'm not quite sure how we should handle these. My guess is that those who include this character in documents don't actually intend it to be taken as a terminal control character, but mean it to show a break between sections of the document. Perhaps for this character, we should have a special case where we replace it with some other character that is displayed properly. It would be a bit of a pain to replace it with a string "^L" like vim does, because then we would have to reallocate the buffer, or have it as a special case while displaying the buffer. So if it is replaced, it would have to be with some other one-byte character.

Maybe there is some termios magic we can do, instead.

Status
REPORTED
Submitter
~smlavine
Assigned to
No-one
Submitted
9 months ago
Updated
4 months ago
Labels
No labels applied.

~smlavine 5 months ago*

Please ignore this comment, it is being used to test a patch for hut.

~smlavine 5 months ago*

Please ignore this comment, it is being used to test a patch for hut.

Register here or Log in to comment, or comment via email.