Created
February 11, 2017 07:36
-
-
Save uwabami/9c726a0893e6405761f30650a4aee513 to your computer and use it in GitHub Desktop.
commandline から uim を問答無用で off にする
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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