bugGNU Screen - Bugs: bug #63361, Screen should also put cursor at 1...

 
 

bug #63361: Screen should also put cursor at 1 in LineFeed if autolf is on.

Submitter:  None
Submitted:  Mon 14 Nov 2022 03:19:43 AM UTC
   
 
Category:  Program Logic Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.8.0
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 Nov 2022 03:21:05 AM UTC, comment #1: 

I meant 0 but my brain was thinking "first column"

Anonymous
Mon 14 Nov 2022 03:19:43 AM UTC, original submission:  

https://vt100.net/docs/vt510-rm/LNM.html

diff --git a/src/ansi.c b/src/ansi.c
index 9ee4ffa..3c83ded 100644
--- a/src/ansi.c
+++ b/src/ansi.c
@@ -1493,7 +1493,7 @@ static void Return(Window *win)
 static void LineFeed(Window *win, int out_mode)
 {
        /* out_mode: 0=lf, 1=cr+lf */
-       if (out_mode)
+       if (out_mode || win->w_autolf)
                win->w_x = 0;
        if (win->w_y != win->w_bot) {   /* Don't scroll */
                if (win->w_y < win->w_height - 1)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-5884.
Corresponding source code