Hacker News new | past | comments | ask | show | jobs | submit login

I was curious about how `Deno.permissions` prevents things like "requesting the permissions, then clearing the screen and asking to press 'g'". Apparently, `Deno.permissions.request()` just stops program execution waiting for user response, so it's impossible to do anything after this call. It also seems to reset text color, so it's impossible to make text invisible. iTerm custom escape sequences allows program to change color profile on the fly. Setting bg and fg to the same value hides Deno messages and allows someone to conceal which permissions are being granted.




Thank you! we'll look into it!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: