This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jummit's profile picture

term.getCursorBlink

Started by Jummit, 12 April 2018 - 06:05 AM
Jummit #1
Posted 12 April 2018 - 08:05 AM
There is currently no way to find out if the cursor is blinking, and I need it for a program I am working on. I think it is only logical to add this function to the term api.
Lupus590 #2
Posted 12 April 2018 - 10:51 AM
If you are using your own terminal objects you can add the function yourself and have the custom term obj track it.
Jummit #3
Posted 12 April 2018 - 12:13 PM
If you are using your own terminal objects you can add the function yourself and have the custom term obj track it.
That's how you can do it, but I intentionally put it in the suggestions and not the ask a pro forum.
Edited on 12 April 2018 - 10:14 AM
Lupus590 #4
Posted 12 April 2018 - 02:21 PM
Make a pull request on github with it implememnted. https://github.com/dan200/ComputerCraft/blob/master/src/main/resources/assets/computercraft/lua/rom/apis/term.lua
Luca_S #5
Posted 12 April 2018 - 06:58 PM
Make a pull request on github with it implememnted. https://github.com/d...m/apis/term.lua

It might be better to do it on the java side.
The Terminal class already has a getCursorBlink() Method so it would basically be nearly the same as the already existing getTextColour() function.(Ofcourse without the encoding of the colour)
Edited on 12 April 2018 - 05:00 PM