You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With less 643 and earlier, pressing Control-Z after running echo test | less +Gg in bash immediately switches from the alternate to the normal screen. With less 661, the user remains on the alternate screen after pressing Control-Z and must then press another key to see the normal screen. After returning to less via fg, Control-Z works as expected. Also, in all versions, pressing Control-Z after running echo test | less works as expected.
The text was updated successfully, but these errors were encountered:
getccu calls getchr which calls iread.
When ctrl-Z (SIGTSTP) is entered, iread sets sigs |= S_STOP
and returns READ_INTR. getchr then also returns READ_INTR.
As of 2d0abe8, getccu converts any negative value like READ_INTR
to a null char, which causes getccu to ignore the char and call
getchr again. Before 2d0abe8 we would retain the negative char
and exit the loop, but the char value was not used because the
fact that sigs is set would be checked first. It seems more
straightforward to just exit the getccu loop when sigs is set.
Related to #563.
With less 643 and earlier, pressing Control-Z after running
echo test | less +Gg
inbash
immediately switches from the alternate to the normal screen. With less 661, the user remains on the alternate screen after pressing Control-Z and must then press another key to see the normal screen. After returning to less viafg
, Control-Z works as expected. Also, in all versions, pressing Control-Z after runningecho test | less
works as expected.The text was updated successfully, but these errors were encountered: