AshlinHarris / Spinners.jl

Command line spinners in Julia with Unicode support
MIT License
13 stars 1 forks source link

Final cleanup #13

Closed AshlinHarris closed 1 year ago

AshlinHarris commented 1 year ago

The last printed character should be written over with a number of blanks corresponding to the length of the character's UInt8 transcode. If this value is not consistent for all values in the string, only the external program will know the value for the currently printed character. Unfortunately, it cannot handle the cleanup after a kill signal is sent, even with try; finally; end. So, the main process has to handle it. Maybe the simplest way is to enforce that characters have the same transcode length, or to print blanks to make it even. Otherwise, additional communication between processes might need to be added.

AshlinHarris commented 1 year ago

56