bugGNU Screen - Bugs: bug #61980, Entering characters after Ctrl-A :...

 
 

bug #61980: Entering characters after Ctrl-A : stops when the window width is reached, resizing the window helps

Submitter:  Axel Beckert <abe>
Submitted:  Wed 02 Feb 2022 01:03:46 PM UTC
   
 
Category:  User Interface Severity:  3 - Normal
Priority:  * 5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  4.9.0
Fixed Release:  None Planned Release:  None
Work Required:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 02 Feb 2022 01:03:46 PM UTC, original submission:  

[Noticed in 4.9.0, but that version is not yet available in the bug report form's "Release" pull down menu, so I've chosen 4.8.0, which probably has that issue as well, but I haven't tested it with 4.8.0 yet.]

How to reproduce:

Open an xterm with a width of 80 columns, e.g. an 80x25 xterm.

In the xterm start a screen session by calling "screen".

Then press Ctrl-A : to get a screen commandline prompt.

Try to enter "screen echo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27" at this prompt.

You won't be able to enter "26 27" at end. Input just stops. If you press Enter afterwards, only "screen echo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 " will be in the prompt's commandline history.

Now resize the xterm to at least 160 columns width. (I use "while :; do echo $LINES x $COLUMNS; sleep 0.1; done" to monitor the window's size.)

Press Ctrl-A : to get a screen commandline prompt.

Use cursor up to get the previous command and try to extend it with "26 27 28 29 30" or try to enter "screen echo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30" at this prompt.

It works this time.

This issue was found when analysing https://savannah.gnu.org/bugs/?61504 and is potentially related to it or at least a similar type of issue.

Because if you try to enter "Ctrl-A :screen echo 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62" in an 200 columns wide screen session, you'll get the message

: too many tokens.

since MAXARGS is reached. (https://savannah.gnu.org/bugs/?61504 is about NOT getting this message of these parameters are given on the commandline. Instead only the first 62 parameters are passed to the command and the remaining ones are silently dropped and hence lost.)

Please also note that the "%s" format string in "%s: too many tokens" seems to be passed the empty string in this case, which seems a (minor) bug in itself.

Axel Beckert <abe>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by anaumov (Updated the item)
  • -email is unavailable- added by abe (Submitted the item)
  • -email is unavailable- added by abe
  •  

    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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-02 anaumov Release4.8.0 4.9.0
    2022-02-02 abe Carbon-Copy- Added fivemack

    Back to the top

    Powered by Savane 3.13-8ccc.
    Corresponding source code