line break in terminal causes the line to be printed multiple times #1

Open
opened 2023-11-17 16:26:59 +01:00 by ddidderr · 0 comments
Owner

A line break that occurs while the line is written byte-by-byte to stdout - because the terminal itself is too small - will break the mechanism of deleting the current line and prepending the time. Because the current line now is - from the viewpoint of the terminal - actually multiple lines long. All these lines would have to be deleted and the cursor would have to be set to h=0 and v=current_line - (nr_of_multiple_lines_for_this_line - 1).

complicated.

A line break that occurs while the line is written byte-by-byte to stdout - because the terminal itself is too small - will break the mechanism of deleting the current line and prepending the time. Because the current line now is - from the viewpoint of the terminal - actually multiple lines long. All these lines would have to be deleted and the cursor would have to be set to h=0 and v=current_line - (nr_of_multiple_lines_for_this_line - 1). complicated.
ddidderr pinned this 2023-11-17 16:27:09 +01:00
ddidderr unpinned this 2024-09-22 10:15:48 +02:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ddidderr/logtimes#1
No description provided.