I am currently writing an application that I would like to open in a new terminal window by resizing it in the process, and not the one in which the call command was entered. How should I do it? I am using the gnome terminal and will be writing a C ++ application.
Try it gnome-terminal --geometry="20x10" -e 'command'(20 - height, 10 - width).
gnome-terminal --geometry="20x10" -e 'command'
In C ++, you can invoke a command using system () .
++ . , , , system(), cstdlib.
:
system("<your-shell-command> <parameters>");
,
system("/usr/bin/gnome-terminal /usr/executables/a.out");
system("C:\\Windows\\cmd.exe C:\\Users\FuUser\\Binaries\a.exe");
If you do this from the Linux console, you want openvt:
openvt
http://www.oreillynet.com/linux/cmd/cmd.csp?path=o/openvt
If you are talking about a terminal window under X, you can usually use a command like
gnome-terminal -e "command"
Source: https://habr.com/ru/post/1772735/More articles:Why is there no binary distribution for OCaml on Win64? - 64bitCustom tag that creates a select element from an enumeration - javaHow to set all pages of a Fireworks CS4 document to PNG? - exportMPEG4 frame parsing from rtp packages - ffmpegWPF: XamlParseException -> AccessViolation when loading a resource dictionary - wpfHow to protect the integrity of the data structure when invoking external logic through observers? - c ++Hold cursor change? - jqueryDrupal module_invoke () and i18n - drupalRetrieving information from Google Earth - kmlHaskell (ghc) memory usage at run time or what am I doing wrong - haskellAll Articles