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
cce3902c
Commit
cce3902c
authored
2 months ago
by
Deucе
Browse files
Options
Downloads
Patches
Plain Diff
Add some key macros for Shift+x and Control+x keys
For use by SyncTERM in Mode 7/Prestel modes.
parent
83c7914b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/conio/ciolib.h
+31
-21
31 additions, 21 deletions
src/conio/ciolib.h
with
31 additions
and
21 deletions
src/conio/ciolib.h
+
31
−
21
View file @
cce3902c
...
...
@@ -742,27 +742,37 @@ CIOLIBEXPORT void mousestate_res(int *x_res, int *y_res, uint8_t *buttons);
}
#endif
#define CIO_KEY_HOME (0x47 << 8)
#define CIO_KEY_UP (0x48 << 8)
#define CIO_KEY_END (0x4f << 8)
#define CIO_KEY_DOWN (0x50 << 8)
#define CIO_KEY_F(x) ((x<11)?((0x3a+x) << 8):((0x7a+x) << 8))
#define CIO_KEY_IC (0x52 << 8)
#define CIO_KEY_DC (0x53 << 8)
#define CIO_KEY_SHIFT_IC (0x05 << 8)
/* Shift-Insert */
#define CIO_KEY_SHIFT_DC (0x07 << 8)
/* Shift-Delete */
#define CIO_KEY_CTRL_IC (0x04 << 8)
/* Ctrl-Insert */
#define CIO_KEY_CTRL_DC (0x06 << 8)
/* Ctrl-Delete */
#define CIO_KEY_ALT_IC (0xA2 << 8)
/* Alt-Insert */
#define CIO_KEY_ALT_DC (0xA3 << 8)
/* Alt-Delete */
#define CIO_KEY_LEFT (0x4b << 8)
#define CIO_KEY_RIGHT (0x4d << 8)
#define CIO_KEY_PPAGE (0x49 << 8)
#define CIO_KEY_NPAGE (0x51 << 8)
#define CIO_KEY_SHIFT_F(x)((x<11)?((0x53 + x) << 8):((0x7c + x) << 8))
#define CIO_KEY_CTRL_F(x) ((x<11)?((0x5d + x) << 8):((0x7e + x) << 8))
#define CIO_KEY_ALT_F(x) ((x<11)?((0x67 + x) << 8):((0x80 + x) << 8))
#define CIO_KEY_BACKTAB (0x0f << 8)
#define CIO_KEY_HOME (0x47 << 8)
#define CIO_KEY_UP (0x48 << 8)
#define CIO_KEY_END (0x4f << 8)
#define CIO_KEY_DOWN (0x50 << 8)
#define CIO_KEY_F(x) ((x<11)?((0x3a+x) << 8):((0x7a+x) << 8))
#define CIO_KEY_IC (0x52 << 8)
#define CIO_KEY_DC (0x53 << 8)
#define CIO_KEY_SHIFT_IC (0x05 << 8)
/* Shift-Insert */
#define CIO_KEY_SHIFT_DC (0x07 << 8)
/* Shift-Delete */
#define CIO_KEY_CTRL_IC (0x04 << 8)
/* Ctrl-Insert */
#define CIO_KEY_CTRL_DC (0x06 << 8)
/* Ctrl-Delete */
#define CIO_KEY_ALT_IC (0xA2 << 8)
/* Alt-Insert */
#define CIO_KEY_ALT_DC (0xA3 << 8)
/* Alt-Delete */
#define CIO_KEY_LEFT (0x4b << 8)
#define CIO_KEY_RIGHT (0x4d << 8)
#define CIO_KEY_PPAGE (0x49 << 8)
#define CIO_KEY_NPAGE (0x51 << 8)
#define CIO_KEY_SHIFT_F(x) ((x<11)?((0x53 + x) << 8):((0x7c + x) << 8))
#define CIO_KEY_CTRL_F(x) ((x<11)?((0x5d + x) << 8):((0x7e + x) << 8))
#define CIO_KEY_ALT_F(x) ((x<11)?((0x67 + x) << 8):((0x80 + x) << 8))
#define CIO_KEY_BACKTAB (0x0f << 8)
#define CIO_KEY_SHIFT_UP (0x38 << 8)
#define CIO_KEY_CTRL_UP (0x8d << 8)
#define CIO_KEY_SHIFT_LEFT (0x34 << 8)
#define CIO_KEY_CTRL_LEFT (0x73 << 8)
#define CIO_KEY_SHIFT_RIGHT (0x36 << 8)
#define CIO_KEY_CTRL_RIGHT (0x74 << 8)
#define CIO_KEY_SHIFT_DOWN (0x32 << 8)
#define CIO_KEY_CTRL_DOWN (0x91 << 8)
#define CIO_KEY_SHIFT_END (0x31 << 8)
#define CIO_KEY_CTRL_END (0x75 << 8)
#define CIO_KEY_MOUSE 0x7dE0 // This is the right mouse on Schneider/Amstrad PC1512 PC keyboards "F-14"
#define CIO_KEY_QUIT 0x7eE0 // "F-15"
...
...
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