\r
//TODO: Set location\r
\r
- #if 1\r
- if( win == gpCurrentWindow ) {\r
+ {\r
int pos = SetCursorPos(giTerminal_Height-2, 0);\r
- printf("\x1B[S"); // Scroll up 1\r
- printf("[%s] %s\n", Source, Message);\r
+ printf("\x1B[T"); // Scroll down 1 (free space below)\r
+ #if 1\r
+ if( win == gpCurrentWindow ) {\r
+ printf("[%s] %s\n", Source, Message);\r
+ }\r
+ #else\r
+ if(win->Name[0])\r
+ printf("%s/%s [%s] %s\n", win->Server->Name, win->Name, Source, Message);\r
+ else\r
+ printf("(status) [%s] %s\n", Source, Message);\r
+ #endif\r
SetCursorPos(-1, pos);\r
}\r
- #else\r
- if(win->Name[0])\r
- printf("%s/%s [%s] %s\n", win->Server->Name, win->Name, Source, Message);\r
- else\r
- printf("(status) [%s] %s\n", Source, Message);\r
- #endif\r
\r
return ret;\r
}\r