/* Only changed by xterm_setup, which is a setup */ staticchar *terminal_emulator = CONFIG_XTERM_CHAN_DEFAULT_EMULATOR; staticchar *title_switch = "-T"; staticchar *exec_switch = "-e";
line = strchr(line, ','); if (line == NULL) return 0;
*line++ = '\0'; if (*line)
title_switch = line;
line = strchr(line, ','); if (line == NULL) return 0;
*line++ = '\0'; if (*line)
exec_switch = line;
return 0;
}
__uml_setup("xterm=", xterm_setup, "xterm=,,\n" " Specifies an alternate terminal emulator to use for the debugger,\n" " consoles, and serial lines when they are attached to the xterm channel.\n" " The values are the terminal emulator binary, the switch it uses to set\n" " its title, and the switch it uses to execute a subprocess,\n" " respectively. The title switch must have the form ' title',\n" " not '=title'. Similarly, the exec switch must have the form\n" " ' command arg1 arg2 ...'.\n" " The default values are 'xterm=" CONFIG_XTERM_CHAN_DEFAULT_EMULATOR ",-T,-e'.\n" " Values for gnome-terminal are 'xterm=gnome-terminal,-t,--'.\n\n"
);
if (access(argv[4], X_OK) < 0)
argv[4] = "port-helper";
/* Ensure we are running on Xorg or Wayland. */ if (!getenv("DISPLAY") && !getenv("WAYLAND_DISPLAY")) {
printk(UM_KERN_ERR "xterm_open : neither $DISPLAY nor $WAYLAND_DISPLAY is set.\n"); return -ENODEV;
}
/* * This business of getting a descriptor to a temp file, * deleting the file and closing the descriptor is just to get * a known-unused name for the Unix socket that we really * want.
*/
fd = mkstemp(file); if (fd < 0) {
err = -errno;
printk(UM_KERN_ERR "xterm_open : mkstemp failed, errno = %d\n",
errno); return err;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.