Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
d22ab8c1
Commit
d22ab8c1
authored
6 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Make ALT-O mouse control toggle work in RIP mode
parent
1a74630f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6954
passed
6 months ago
Stage: build
Stage: test
Stage: cleanup
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/syncterm/CHANGES
+6
-1
6 additions, 1 deletion
src/syncterm/CHANGES
src/syncterm/ripper.c
+2
-1
2 additions, 1 deletion
src/syncterm/ripper.c
src/syncterm/term.c
+0
-19
0 additions, 19 deletions
src/syncterm/term.c
src/syncterm/term.h
+19
-0
19 additions, 0 deletions
src/syncterm/term.h
with
27 additions
and
21 deletions
src/syncterm/CHANGES
+
6
−
1
View file @
d22ab8c1
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
--------------
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/ripper.c
+
2
−
1
View file @
d22ab8c1
...
...
@@ -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);
This diff is collapsed.
Click to expand it.
src/syncterm/term.c
+
0
−
19
View file @
d22ab8c1
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
src/syncterm/term.h
+
19
−
0
View file @
d22ab8c1
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment