if(ch == 0x1B) //Escaped = true;
{
ch = getch();
-#ifdef NCDEBUG
+#ifdef NCDEBUG
fprintf(f, " \\e: %d\n",ch);
-#endif
+#endif
if((ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9'))
{
key = characters2Key[ch];
ch = getch();
#ifdef NCDEBUG
fprintf(f, " [: %d\n",ch);
-#endif
+#endif
ch1 = getch();
#ifdef NCDEBUG
fprintf(f, " MOD: %c\n",ch1);
-#endif
+#endif
if(ch == '[')
{
if(ch1 == 'A') key = f1;
switch(ch)
{
case '1': case '7': key = home; break;
- case '2': key = insert; break;
+ case '2': key = insert; break;
case '3': key = del; break;
case '4': case '8': key = end; break;
case '5': key = pageUp; break;
ch = getch();
#ifdef NCDEBUG
fprintf(f, " O: %d\n",ch);
-#endif
+#endif
keyFlags.ctrl = true;
switch(ch)
{
key = escape;
ch = 27;
}
- else
+ else
ch = 0;
/*else
{
}*/
}
}
- else if(ch<256)
+ else if(ch<256)
{
key = characters2Key[ch];
if(!key && ch <= 26)
if(event.bstate & BUTTON1_PRESSED)
{
Time time = GetTime();
- if(time - lastTime[0] < DBLCLICK_DELAY &&
+ if(time - lastTime[0] < DBLCLICK_DELAY &&
Abs(mousePosition.x - lastPos[0].x) < DBLCLICK_DELTA &&
Abs(mousePosition.y - lastPos[0].y) < DBLCLICK_DELTA)
AddMsg(__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnLeftDoubleClick, x, y, keyFlags);
if(event.bstate & BUTTON3_PRESSED)
{
Time time = GetTime();
- if(time - lastTime[2] < DBLCLICK_DELAY &&
+ if(time - lastTime[2] < DBLCLICK_DELAY &&
Abs(mousePosition.x - lastPos[2].x) < DBLCLICK_DELTA &&
Abs(mousePosition.y - lastPos[2].y) < DBLCLICK_DELTA)
AddMsg(__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnRightDoubleClick, x, y, keyFlags);
if(event.bstate & BUTTON2_PRESSED)
{
Time time = GetTime();
- if(time - lastTime[1] < DBLCLICK_DELAY &&
+ if(time - lastTime[1] < DBLCLICK_DELAY &&
Abs(mousePosition.x - lastPos[1].x) < DBLCLICK_DELTA &&
Abs(mousePosition.y - lastPos[1].y) < DBLCLICK_DELTA)
AddMsg(__ecereVMethodID___ecereNameSpace__ecere__gui__Window_OnMiddleDoubleClick, x, y, keyFlags);
byte c = 0,f,b;
initscr();
-
+
SetLoggingMode(buffer, null);
if((bool)has_colors())
{
for(f=0; f<8; f++)
init_pair(c++,colorMap[f],colorMap[b]);
}
-
+
printf( "\033(U\017");
fflush(stdout);
intrflush(stdscr, (_Bool)false);
ncursesMutex = Mutex { };
ncursesTerminate = false;
-
+
ncursesThread = Thread { };
incref ncursesThread;
ncursesThread.Main = NCursesThread;
}
else
caretVisible = false;
- }
+ }
// --- Clipboard manipulation ---
{
bool result = false;
if((clipBoard.text = new char[size]))
- result = true;
+ result = true;
return result;
}