URL:
<https://savannah.gnu.org/bugs/?61980>
Summary: Entering characters after Ctrl-A : stops when the
window width is reached, resizing the window helps
Project: GNU Screen
Submitted by: abe
Submitted on: 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.8.0
Discussion Lock: Any
Fixed Release: None
Planned Release: None
Work Required: None
_______________________________________________________
Details:
[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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61980>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/