Hi, I've been playing around with the set_leds() function today, and I've found that I can make my KVM switch go to my other machine with the following program, I was wondering if anybody could test it. Compile it, linked with allegro, open a terminal window, run it for 10 seconds or so, then close it with Ctrl-C, then close the terminal window. See what happens. For reference, I have a Belkin USB 2-Port KVM Switch. Underneath it says '2-port KVM Switch with Built-in Cabling'. Here's the code:
Do not run it without opening a terminal, else you'll have a harder time closing it. Also note that it didn't break my KVM switch at all, and I was able to switch back by pressing the button. I'd like it if people tried it with different makes and models, and if anybody knew the reason.
I don't know if install_keyboard() is required, I left it because I couldn't be bothered finding out, and seeing as I use set_leds, a keyboard function, I thought it would probably be needed.