otherwise we end up with w_monitor still enabled after :monitor off
./screen
C-a :defmonitor on
C-a c
sleep 5 && echo -e "\a"
C-a c
C-a :monitor off
sleep 5 && echo -e "\a"
C-a 0
C-a :windowlist
it should render 1 and 2 window differently on windowlist
will need to be checked later, how it works with more than one user
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
not sure why it was done, but it seems to serve no functional purpose at
all and breaks displaying flags in :windowlist
display is used by AddWindowFlags to check whether we should show some
of flags and they are not shown when display == 0
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
on xterm
echo -e "\e[38;5;1mtest\e[1mtest"
puts both 'test' strings in same color, however in screen, second one is
bright
do note that defbce on, may interfere with this
Bug: 50601
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
of course we can fail write() here for reasons, but we don't care as we
are on error path anyway, so we can't fail more
apparently due to some design decisions in gcc/glibc one cannot just
(void)write(...);
hence additional variable
This reverts commit 29501d7426.
Actually this is correct place to ask user for password, as it is
handled server side.
It's bit modified to build, will need also some integration with
authentication.c to check if password is correct.
This issue has been discussed before:
https://bbs.archlinux.org/viewtopic.php?id=108640
Copy mode and “hardcopy -h” always begin at the start of the scrollback buffer.
If a user sets a large scrollback limit with little output, then copy mode and
the file written by “hardcopy -h” will begin with many blank lines before the
first line of output.
The attached patch limits the scrollback buffer traversal to begin at the first
line of output, instead of the beginning of the scrollback buffer.
Also, code for moving to %age of buffer is changed to use float division so
that two different rep_cnt will not jump to the same location, except for
buffers less than 100 lines. Previously, the computed line number is rounded
down to the nearest 100th due to integer division.
Bug: 49377
also add BIG warning for people trying to build without it, basically
running screen as root may make sense on some embedded linux, where you
don't have users, but everyone else should use PAM
while at it improve ./configure output to show final configuration
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
apparently crypt and getspnam, don't need to be freed, as the buffer
gets reused by library, if we ever call them again...
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>