git.y1.nz

mtm

Ncurses-based terminal multiplexer
download: https://git.y1.nz/archives/mtm.tar.gz
Files | Log | Refs

commit 1f8ef3402b0960c6718f68b69074d39c66969057
parent 3582cdc9498d9c06fa79e982753d5132cfb70fed
Author: Rob King <jking@deadpixi.com>
Date:   Thu,  9 Mar 2017 09:53:30 -0600

Recognize control sequences in other states.

Diffstat:
Mtmt.c4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tmt.c b/tmt.c @@ -24,6 +24,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <ctype.h> #include <limits.h> #include <stdint.h> #include <stdio.h> @@ -252,7 +253,8 @@ handlechar(TMT *vt, char i) COMMON_VARS; char cs[] = {i, 0}; - #define ON(S, C, A) if (vt->state == (S) && strchr(C, i)){ A; return true;} + #define ON(S, C, A) if ((vt->state == (S) || (!(S) && iscntrl(i))) \ + && strchr(C, i)){ A; return true;} #define DO(S, C, A) ON(S, C, consumearg(vt); if (!vt->ignored) {A;} \ fixcursor(vt); resetparser(vt););

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.