MCPcopy Create free account
hub / github.com/ConEmu/ConEmu / SetKey

Method SetKey

src/ConEmu/TermX.cpp:98–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96 wchar_t szSubst[16];
97
98 void SetKey(CEStr& lsSubst, wchar_t c, wchar_t prefix=L'O')
99 {
100 if (!Mods)
101 {
102 //wcscpy_c(szSubst, L"\033O*A");
103 msprintf(szSubst, countof(szSubst), L"\033%c%c", prefix, c);
104 }
105 else
106 {
107 msprintf(szSubst, countof(szSubst), L"\033[1;%c%c", Mods+L'1', c);
108 }
109 lsSubst.Set(szSubst);
110 }
111
112 void SetFKey(CEStr& lsSubst, UINT fn)
113 {

Callers 1

GetSubstituteMethod · 0.80

Calls 2

msprintfFunction · 0.85
SetMethod · 0.45

Tested by

no test coverage detected