Skip to content

unxed/libkcon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libkcon: keyboard protocol converter

Light dependency-free C library to bridge modern input protocols for virtual terminals: kitty and win32 input mode.

Special cases:

  1. F3 Key in kitty: The specification allows CSI R, but we use 13~ to avoid conflicts with Cursor Position Reports.
  2. VK_BACK in kitty: Under certain flags, backspace is translated to code 127 instead of 8 due to compatibility reasons.
  3. Unshifted keys: win32 input mode do not have enough information to generate "unshifted key" value. This library uses towlower() for letters to remain as portable as possible.
  4. win32im default values: According to ConPTY spec, omitted values have defaults (e.g., repeat count = 1). This library handle these explicitly.

How to build and run tests

cmake .
make

QA & Testing

See kitty2vte (100% tests pass)

License

CC0 1.0 Universal - No Rights Reserved.

About

vt keyboard protocol converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors