Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

OSD interprets /-slashes in the text

The global syntax is OSD <options> <text>, but anything that looks like an option in the text will be interpreted (this happens most easily with the shortest option /c).
One can "-double-quote the text to avoid the issue, but the quotes will be displayed on screen.
 
I looked for a workaround for quite a while and didn't find one. But my investigation gave me questions.

I thought OSD was (could be) non-blocking (prompt returns) ... yes/no?

If it is blocking, what's the point of /ID and /C?

Oh! maybe you could

Code:
thread osd /id=6 /pos=0,0 /time=60 foo

That works but OSD /C=6 doesn't close the OSD or cause the thread to terminate. So, again, what's the point of /ID and /C?
 
I looked for a workaround for quite a while and didn't find one. But my investigation gave me questions.

I thought OSD was (could be) non-blocking (prompt returns) ... yes/no?

If it is blocking, what's the point of /ID and /C?

Oh! maybe you could

Code:
thread osd /id=6 /pos=0,0 /time=60 foo

That works but OSD /C=6 doesn't close the OSD or cause the thread to terminate. So, again, what's the point of /ID and /C?

Use /ID= with /N (and typically with /TIME=0) to open an OSD window and carry on. Later on you can use /C with /ID= to close it.
 
Er, make that /TIME=99999 or similar. I thought that TCC's internal OSD used /TIME=0 to mean "no timeout"; it does not.
 
As for slashes in the text, %@CHAR[0x2215] looks the same in most fonts, and has no special meaning to TCC.
 
I completely missed /N! Thanks.
The global syntax is OSD <options> <text>, but anything that looks like an option in the text will be interpreted (this happens most easily with the shortest option /c).
One can "-double-quote the text to avoid the issue, but the quotes will be displayed on screen.
It seems to be ONLY /c. This works (but not if I throw in a "/c").

Code:
osd /pos=0,1920 /time=5 foo /n /id /font /pos /rgb /time /top /left /bottom /right /hcenter /vcenter /v /z /garbage

1750781910548.webp
 
Back
Top