Anonymous
public text v1 · immutablevoid pasteit(void){
char buf[256];
if (Syscall.UI_Argc() == 1) {
orig_syscall(UI_PRINT, "^nA small Help for pasting things in console :)\n");
orig_syscall(UI_PRINT, "^nUsage: /eth_paste [command]\n");
orig_syscall(UI_PRINT, "^nexample: /eth_paste say\n");
}
char command[256];
strcpy(command, Syscall.UI_Argv(1));
char *cmd = getOutputSystemCommand("xclip -o -sel clip");
snprintf(buf, sizeof(buf),"%s %s\n", command, cmd);
orig_syscall(UI_CMD_EXECUTETEXT, EXEC_APPEND, buf);
}