fd8737d3f0
* On output: detect them and transcode them properly into UTF-8. * On input: create input records for both halfs of the surrogate pair. I tested by copying-and-pasting U+20000 (D840 DC00) into a mintty bash shell. It works, but the Windows console thinks the character occupies four cells when it really occupies two, so the cursor position is wrong. When I press backspace, it doesn't delete the whole character -- instead, it replaces it with a '?', because it becomes an invalid surrogate pair. Still, the behavior seems like an improvement.
74 lines
2.2 KiB
Python
74 lines
2.2 KiB
Python
{
|
|
'targets' : [
|
|
{
|
|
'target_name' : 'winpty-agent',
|
|
'type' : 'executable',
|
|
'include_dirs' : [
|
|
'include',
|
|
],
|
|
'defines' : [
|
|
'UNICODE',
|
|
'_UNICODE',
|
|
'_WIN32_WINNT=0x0501',
|
|
'NOMINMAX',
|
|
],
|
|
'sources' : [
|
|
'agent/Agent.h',
|
|
'agent/Agent.cc',
|
|
'agent/AgentAssert.h',
|
|
'agent/AgentAssert.cc',
|
|
'agent/ConsoleFont.cc',
|
|
'agent/ConsoleFont.h',
|
|
'agent/ConsoleInput.cc',
|
|
'agent/ConsoleInput.h',
|
|
'agent/ConsoleLine.cc',
|
|
'agent/ConsoleLine.h',
|
|
'agent/Coord.h',
|
|
'agent/Coord.cc',
|
|
'agent/DsrSender.h',
|
|
'agent/EventLoop.cc',
|
|
'agent/NamedPipe.h',
|
|
'agent/NamedPipe.cc',
|
|
'agent/SmallRect.h',
|
|
'agent/SmallRect.cc',
|
|
'agent/Terminal.h',
|
|
'agent/Terminal.cc',
|
|
'agent/UnicodeEncoding.h',
|
|
'agent/Win32Console.cc',
|
|
'agent/Win32Console.h',
|
|
'agent/main.cc',
|
|
'agent/winpty_wcsnlen.cc',
|
|
'agent/winpty_wcsnlen.h',
|
|
'shared/AgentMsg.h',
|
|
'shared/Buffer.h',
|
|
'shared/DebugClient.h',
|
|
'shared/DebugClient.cc',
|
|
'shared/c99_snprintf.h',
|
|
],
|
|
},
|
|
{
|
|
'target_name' : 'winpty',
|
|
'type' : 'shared_library',
|
|
'include_dirs' : [
|
|
'include',
|
|
],
|
|
'defines' : [
|
|
'UNICODE',
|
|
'_UNICODE',
|
|
'_WIN32_WINNT=0x0501',
|
|
'NOMINMAX',
|
|
'WINPTY',
|
|
],
|
|
'sources' : [
|
|
'include/winpty.h',
|
|
'libwinpty/winpty.cc',
|
|
'shared/AgentMsg.h',
|
|
'shared/Buffer.h',
|
|
'shared/DebugClient.h',
|
|
'shared/DebugClient.cc',
|
|
'shared/c99_snprintf.h',
|
|
],
|
|
},
|
|
],
|
|
}
|