Skip to content

Instantly share code, notes, and snippets.

@uwabami
Created February 11, 2017 07:36
Show Gist options
  • Select an option

  • Save uwabami/9c726a0893e6405761f30650a4aee513 to your computer and use it in GitHub Desktop.

Select an option

Save uwabami/9c726a0893e6405761f30650a4aee513 to your computer and use it in GitHub Desktop.
commandline から uim を問答無用で off にする
#include <stdio.h>
#include <uim/uim.h>
#include <uim/uim-helper.h>
int main(void)
{
int fd;
// initalize
fd = uim_helper_init_client_fd(NULL);
if (fd < 0) {
fprintf(stderr, "error: uim_helper_init_client_fd()\n");
return 1;
}
// change im -- direct
uim_helper_send_message(fd, "im_change_whole_desktop\ndirect\n");
// close
uim_helper_close_client_fd(fd);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment