diff options
author | midipix <writeonce@midipix.org> | 2016-07-12 12:34:03 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:27 -0400 |
commit | 029664574763aa7725e490b2754aa00e74d8fdce (patch) | |
tree | ffc14a8b0c69d58ac0b000bd290b2ae8bef8563c /src/internal | |
parent | 4219632f84a58b413477e2d82b5768a42036d7cd (diff) | |
download | ptycon-029664574763aa7725e490b2754aa00e74d8fdce.tar.bz2 ptycon-029664574763aa7725e490b2754aa00e74d8fdce.tar.xz |
console: added initial reader (terminal-to-client) logic.
Diffstat (limited to 'src/internal')
-rw-r--r-- | src/internal/ptycon_bridge_impl.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/internal/ptycon_bridge_impl.h b/src/internal/ptycon_bridge_impl.h index a9d255c..279ce07 100644 --- a/src/internal/ptycon_bridge_impl.h +++ b/src/internal/ptycon_bridge_impl.h @@ -2,6 +2,7 @@ #define PTYCON_BRIDGE_IMPL_H #include <psxtypes/psxtypes.h> +#include <ntcon/ntcon.h> enum ptyc_ctrl_state { PTYC_CTRL_STATE_ESI, @@ -11,6 +12,7 @@ enum ptyc_ctrl_state { }; #define PTYC_BUFFER_ELEMENTS 0x8000 +#define PTYC_RAW_EVENTS 0x400 #define PTYC_CTRL_PARAMS 0x20 #define PTYC_ESI_ARRAY_SIZE 0x5F @@ -24,6 +26,11 @@ struct ptyc_term_data { wchar16_t screen [PTYC_BUFFER_ELEMENTS]; }; +struct ptyc_term_input { + nt_input_record events [PTYC_RAW_EVENTS]; + unsigned char stream [PTYC_RAW_EVENTS*4]; +}; + struct ptyc_term_ctx; typedef void * __fastcall ptyc_term_handler (struct ptyc_term_ctx *); @@ -47,6 +54,7 @@ struct ptyc_term_ctx { uint16_t foreground; uint16_t background; struct ptyc_term_data data; + struct ptyc_term_input input; }; extern ptyc_term_handler * const ptyc_esi_handlers[]; |