aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/pty_conpty_win.h
blob: 15e7c3da0c4632a82ed36894f4751c24a82c0bf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef NVIM_OS_PTY_CONPTY_WIN_H
#define NVIM_OS_PTY_CONPTY_WIN_H

#include "nvim/lib/kvec.h"
#include "nvim/os/input.h"

#ifndef HPCON
# define HPCON VOID *
#endif

extern HRESULT (WINAPI *pCreatePseudoConsole)  // NOLINT(whitespace/parens)
  (COORD, HANDLE, HANDLE, DWORD, HPCON *);
extern HRESULT (WINAPI *pResizePseudoConsole)(HPCON, COORD);
extern void (WINAPI *pClosePseudoConsole)(HPCON);

typedef struct conpty {
  HPCON pty;
  STARTUPINFOEXW si_ex;
} conpty_t;

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "os/pty_conpty_win.h.generated.h"
#endif

#endif  // NVIM_OS_PTY_CONPTY_WIN_H