This commit is contained in:
y4my4my4m 2023-08-25 14:54:17 +09:00
parent b32f9cea77
commit cd3fd49758
3 changed files with 40 additions and 0 deletions

29
src/Home/Yuugure.ZC Executable file
View file

@ -0,0 +1,29 @@
I64 initialWinBottom = sys_task->win_bottom;
CDoc *initialDisplayDoc = sys_task->display_doc;
U0 Yuugure()
{
// Hide SysLog
if (sys_task->win_bottom != 0) {
while(sys_task->win_bottom > -1){
sys_task->win_bottom--;
Sleep(20);
}
sys_task->display_doc = NULL;
WinBorder(OFF, sys_task);
}
// Show SysLog
else {
WinBorder(ON, sys_task);
sys_task->display_doc = initialDisplayDoc;
while(sys_task->win_bottom != initialWinBottom){
sys_task->win_bottom++;
Sleep(20);
}
}
WinZBufUpdate;
}

View file

@ -110,6 +110,16 @@ Bool MyPutKey(I64 ch, I64 sc)
} }
return TRUE; return TRUE;
case SC_F12:
if (!(sc & SCF_SHIFT))
{
if (sc & SCF_KEY_DESC)
KeyDescSet("Cmd /Yuugure");
else
Yuugure;
}
return TRUE;
case SC_DELETE: case SC_DELETE:
if (sc & SCF_SHIFT) if (sc & SCF_SHIFT)
{ {

View file

@ -8,6 +8,7 @@ Cd(__DIR__);;
#include "~/HomeWrappers" #include "~/HomeWrappers"
MapFileLoad("::/Kernel/Kernel"); MapFileLoad("::/Kernel/Kernel");
MapFileLoad("::/Compiler/Compiler"); MapFileLoad("::/Compiler/Compiler");
#include "~/Yuugure"
#include "~/HomeKeyPlugIns" #include "~/HomeKeyPlugIns"
#include "~/HomeSys" #include "~/HomeSys"
Cd("..");; Cd("..");;