The size of the text area is reported in characters and get-mouse-bg Report mouse pointer background color. get-mouse-fg Report mouse pointer foreground color. Therefore unable to handle negative offsets as described in theĪnd therefore truncates negative values to zero. Through its control sequences the xterm only recognize positive XOFF and YOFF offsets, whichĪre pixels relative to the upper left hand corner of the display. geometry=WIDTHxHEIGHT+XOFF+YOFF Set size and/or position. Alternatively it is possible to specify aįontmenu index as '#' or navigate the fontmenu by relative sizes as '#+N' or mouse-bg=COLOR Set mouse pointer background color to COLOR. mouse-fg=COLOR Set mouse pointer foreground color to COLOR. highlight=COLOR Set highlight color to COLOR. color N=COLOR Set N'th color to COLOR, e.g. Options -fg=COLOR Set foreground color to COLOR. It's also possible to install with Homebrew on macOS as: Thanks to the maintainers of these packages! Via their respective Package Management Systems. Install by issuing 'configure & make install'. The Make Test Video showcase most of xtermcontrol's options. To complete the feature set xtermcontrol lets advanced users issue any xterm control Window manipulations de-/iconify, raise/lower, maximize/restore and reset are also supported. To report the current settings of these properties. I could not figure out a simple way to make it behave in a "Press any key to end" way, without depending on the program executed to do so.Īdd a second command following the first that will wait for input.It makes it easy to change colors, title, font and geometry of a running xterm, as well as I tried xterm -into $someid -hold -e programname, but then when I close the container window an xterm process keeps staying running! I am opening xterm and executing a programīut when the program finishes xterm disapears without leaving time to view what happened. Update: I changed this link, because Writeup Formatting Tips isn't the direct source for info about linking.)Īfter managing to find the right size I've stuck into another problem. (BTW, check out What shortcuts can I use for linking to other information? to see the easy way to link to other nodes at the monastery. You'll probably need to experiment for a while with font sizes for the xterm and pixel sizes for the containing widget, to get a feel for how they relate. It seems that 80x24 is the typical default xterm size, but if your font is different from the one zentara used, your display might not seem to work right. Using "-geometry 78x23" actually improved its behavior for me YMMV. In the code that you cited ( embedding xterm into a Tk app by zentara) just add that option to the string being passed to system() at line 46. You can control the xterm size on start-up by adding this option: -geometry WxH (where W and H are width and height in characters). (You only get to see the values for the xterm shell from which the perl script was run, as $ENV. The xterm sets those two environment variables to the window's height and width, respectively, in characters, but since the xterm being run by your Perl/Tk script is in a sub-shell, the values for that particular xterm window won't be accessible by the perl script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |