mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-22 17:37:38 +00:00
@@ -78,7 +78,8 @@ public class TermAPI implements ILuaAPI
|
|||||||
"setPaletteColour",
|
"setPaletteColour",
|
||||||
"setPaletteColor",
|
"setPaletteColor",
|
||||||
"getPaletteColour",
|
"getPaletteColour",
|
||||||
"getPaletteColor"
|
"getPaletteColor",
|
||||||
|
"getCursorBlink",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -298,6 +299,9 @@ public class TermAPI implements ILuaAPI
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
case 23:
|
||||||
|
// getCursorBlink
|
||||||
|
return new Object[] { m_terminal.getCursorBlink() };
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
return null;
|
return null;
|
||||||
|
@@ -65,7 +65,8 @@ public class MonitorPeripheral implements IPeripheral
|
|||||||
"setPaletteColour",
|
"setPaletteColour",
|
||||||
"setPaletteColor",
|
"setPaletteColor",
|
||||||
"getPaletteColour",
|
"getPaletteColour",
|
||||||
"getPaletteColor"
|
"getPaletteColor",
|
||||||
|
"getCursorBlink",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,8 +250,13 @@ public class MonitorPeripheral implements IPeripheral
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
case 24:
|
||||||
|
// getCursorBlink
|
||||||
|
Terminal terminal = m_monitor.getTerminal().getTerminal();
|
||||||
|
return new Object[] { terminal.getCursorBlink() };
|
||||||
|
default:
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -258,6 +258,10 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible )
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function window.getCursorBlink()
|
||||||
|
return bCursorBlink
|
||||||
|
end
|
||||||
|
|
||||||
local function isColor()
|
local function isColor()
|
||||||
return parent.isColor()
|
return parent.isColor()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user