Recently I've discovered an excellent software for MacOS, which provides an opportunity, among other things, to share the wireless keyboard and mouse between different computers. It is called Teleport and it works pretty neat.
The thing is that I'm trying to use this feature with iMac as target display and each time I'm switching off to target display mode cursor is lost on my macbook, and I just don't know what to do with this issue.
The question is - how can I share my mouse and keyboard in Target Display mode By phrase "in target display mode" I mean tha if cursors has been teleported to macbook before switching to Target Display mode then it remains there after changing mode). With Teleport (preferable, since it is already in my private ecosystem) or without it.
UPD: Currently I'm just switching bluetooth on one device and switching it on on the other one. The only problem with this solution is that all my input devices are wireless, and thus I can not switch of bluetooth (MacOS just refuses to do that). So only for that purposes I've plugged in an USB mouse.