y0014984 / Advanced-Equipment

Advanced Equipment is a Arma 3 mod, that brings equipment to life, like laptops and lamps.
Other
27 stars 10 forks source link

ArmaOS blinking cursor #132

Open y0014984 opened 2 years ago

y0014984 commented 2 years ago

If we have an individual terminal font with an full size block, we could implement a blinking cursor.

y0014984 commented 1 year ago

At the moment @GermanHydrogen is implementing a moving cursor that uses our current terminal and moves text to the right side of the cursor while the cursor moves left, and also the other way around. If we ever want that the cursor is blinking we would need to be able to update somthing in a time interval. That would not be a good idea with the current terminal.

One solution to this problem could be a second text control, that lies behind the current text control and contains only the cursor. In that way it could be much easier to just hide/show the textfield and the cursor within, so it seems to blink. also this would allow to use a cursor like an underline _, a pipe | or a block sign, that is rendered in the same place as the current text position.

The only task would be to update the second text control in the same way the first one is changed, so they keep aligned. I think this is not too much work and would increase the look and feel of a real terminal. But I think at the moment the solution by @GermanHydrogen is enough because we have so much to do und so little time.

This comment is just to keep track of that idea.

y0014984 commented 9 months ago

related to #130