Skip to content
Snippets Groups Projects
Commit d22ab8c1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Make ALT-O mouse control toggle work in RIP mode

parent 1a74630f
Branches
Tags
No related merge requests found
Pipeline #6954 passed
Version 1.2rc5
--------------
Fix RIP parsing when passed fragmented ANSI sequences
Fix cursor when RIP changes font height
Fix Alt-O in RIP mode
Version 1.2rc4
--------------
Fix pointy scaling to work even when interpolating both directions
......@@ -9,7 +15,6 @@ Fix telnets (broken when sftp support was added)
Update ANSI and win32 console support
Fix bug with window resizing calculations
New icons thanks to zuMi!
Fix RIP parsing when passed fragmented ANSI sequences
Version 1.2rc3
--------------
......
......@@ -16241,6 +16241,7 @@ rip_getch(void)
}
return ch;
}
struct mouse_state *ms = cterm->mouse_state_change_cbdata;
 
gotoxy(wherex(), wherey());
ch = getch();
......@@ -16251,7 +16252,7 @@ rip_getch(void)
}
 
shadow_palette();
if (ch == CIO_KEY_MOUSE) {
if (ch == CIO_KEY_MOUSE && (!(ms->flags & MS_FLAGS_DISABLED))) {
ch = -1;
getmouse(&mevent);
mevent.startx_res = unmap_rip_x(mevent.startx_res);
......@@ -102,25 +102,6 @@ get_cterm_size(int *cols, int *rows, int ns)
}
}
enum mouse_modes {
MM_OFF,
MM_RIP = 1,
MM_X10 = 9,
MM_NORMAL_TRACKING = 1000,
MM_HIGHLIGHT_TRACKING = 1001,
MM_BUTTON_EVENT_TRACKING = 1002,
MM_ANY_EVENT_TRACKING = 1003
};
struct mouse_state {
uint32_t flags;
#define MS_FLAGS_SGR (1 << 0)
#define MS_FLAGS_DISABLED (1 << 1)
#define MS_SGR_SET (1006)
enum mouse_modes mode;
};
void
setup_mouse_events(struct mouse_state *ms)
{
......
......@@ -18,6 +18,25 @@ struct terminal {
int nostatus;
};
enum mouse_modes {
MM_OFF,
MM_RIP = 1,
MM_X10 = 9,
MM_NORMAL_TRACKING = 1000,
MM_HIGHLIGHT_TRACKING = 1001,
MM_BUTTON_EVENT_TRACKING = 1002,
MM_ANY_EVENT_TRACKING = 1003
};
struct mouse_state {
uint32_t flags;
#define MS_FLAGS_SGR (1 << 0)
#define MS_FLAGS_DISABLED (1 << 1)
#define MS_SGR_SET (1006)
enum mouse_modes mode;
};
#define XMODEM_128B (1 << 10) /* Use 128 byte block size (ick!) */
extern struct terminal term;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment