Class: Vte::Terminal
- Inherits:
-
Gtk::Widget
- Object
- Gtk::Widget
- Vte::Terminal
- Extended by:
- GLib::Deprecatable
- Defined in:
- lib/vte4/terminal.rb,
lib/vte4/deprecated.rb
Overview
All of these fields should be considered read-only, except for derived classes.
Instance Method Summary collapse
-
#allow_bold ⇒ Boolean
Checks whether or not the terminal will attempt to draw bold text, by using a bold font variant.
-
#allow_bold=(allow_bold) ⇒ Boolean
Controls whether or not the terminal will attempt to draw bold text, by using a bold font variant.
-
#allow_bold? ⇒ Boolean
Controls whether or not the terminal will attempt to draw bold text, by using a bold font variant.
-
#allow_hyperlink ⇒ Boolean
Checks whether or not hyperlinks (OSC 8 escape sequence) are allowed.
-
#allow_hyperlink=(allow_hyperlink) ⇒ Boolean
Controls whether or not hyperlinks (OSC 8 escape sequence) are recognized and displayed.
-
#allow_hyperlink? ⇒ Boolean
Controls whether or not hyperlinks (OSC 8 escape sequence) are recognized and displayed.
-
#audible_bell ⇒ Boolean
Checks whether or not the terminal will beep when the child outputs the "bl" sequence.
-
#audible_bell=(audible_bell) ⇒ Boolean
Controls whether or not the terminal will beep when the child outputs the "bl" sequence.
-
#audible_bell? ⇒ Boolean
Controls whether or not the terminal will beep when the child outputs the "bl" sequence.
-
#backspace_binding ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the backspace key.
-
#backspace_binding=(backspace_binding) ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the backspace key.
-
#bold_is_bright ⇒ Boolean
Checks whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
-
#bold_is_bright=(bold_is_bright) ⇒ Boolean
Whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
-
#bold_is_bright? ⇒ Boolean
Whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
-
#cell_height_scale ⇒ Float
Scale factor for the cell height, to increase line spacing.
-
#cell_height_scale=(cell_height_scale) ⇒ Float
Scale factor for the cell height, to increase line spacing.
-
#cell_width_scale ⇒ Float
Scale factor for the cell width, to increase letter spacing.
-
#cell_width_scale=(cell_width_scale) ⇒ Float
Scale factor for the cell width, to increase letter spacing.
-
#char_height ⇒ Vte::glong
Note that this method should rather be called vte_terminal_get_cell_height, because the return value takes cell-height-scale into account.
-
#char_width ⇒ Vte::glong
Note that this method should rather be called vte_terminal_get_cell_width, because the return value takes cell-width-scale into account.
-
#check_hyperlink_at(x, y) ⇒ String
Returns a nonempty string: the target of the explicit hyperlink (printed using the OSC 8 escape sequence) at the position (x, y), or nil.
-
#check_match_at(x, y, tag) ⇒ String
Checks if the text in and around the position (x, y) matches any of the regular expressions previously set using vte_terminal_match_add().
-
#check_regex_array_at(x, y, regexes, n_regexes, match_flags, n_matches) ⇒ Array<String>
Like vte_terminal_check_regex_simple_at(), but returns an array of strings, containing the matching text (or nil if no match) corresponding to each of the regexes in regexes.
-
#check_regex_simple_at(x, y, regexes, n_regexes, match_flags, matches) ⇒ Boolean
Checks each regex in regexes if the text in and around the position (x, y) matches the regular expressions.
-
#cjk_ambiguous_width ⇒ Integer
This setting controls whether ambiguous-width characters are narrow or wide.
-
#cjk_ambiguous_width=(cjk_ambiguous_width) ⇒ Integer
This setting controls whether ambiguous-width characters are narrow or wide.
-
#clear_background=(setting) ⇒ nil
Sets whether to paint the background with the background colour.
-
#color_background=(background) ⇒ nil
Sets the background color for text which does not have a specific background color assigned.
-
#color_bold=(bold) ⇒ nil
Sets the color used to draw bold text in the default foreground color.
-
#color_cursor=(cursor_background) ⇒ nil
Sets the background color for text which is under the cursor.
-
#color_cursor_foreground=(cursor_foreground) ⇒ nil
Sets the foreground color for text which is under the cursor.
-
#color_foreground=(foreground) ⇒ nil
Sets the foreground color used to draw normal text.
-
#color_highlight=(highlight_background) ⇒ nil
Sets the background color for text which is highlighted.
-
#color_highlight_foreground=(highlight_foreground) ⇒ nil
Sets the foreground color for text which is highlighted.
-
#column_count ⇒ Vte::glong
The number of columns.
-
#context_menu ⇒ Gtk::Popover
The menu used for context menus.
-
#context_menu=(context_menu) ⇒ Gtk::Popover
The menu used for context menus.
-
#context_menu_model ⇒ Gio::MenuModel
The menu model used for context menus.
-
#context_menu_model=(context_menu_model) ⇒ Gio::MenuModel
The menu model used for context menus.
-
#copy_clipboard ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_CLIPBOARD selection.
-
#copy_clipboard_format(format) ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_CLIPBOARD selection in the form specified by format.
-
#copy_primary ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_PRIMARY selection.
-
#current_directory_uri ⇒ String
The current directory URI, or nil if unset.
-
#current_directory_uri=(current_directory_uri) ⇒ String
The current directory URI, or nil if unset.
-
#current_file_uri ⇒ String
The current file URI, or nil if unset.
-
#current_file_uri=(current_file_uri) ⇒ String
The current file URI, or nil if unset.
-
#cursor_blink_mode ⇒ Vte::CursorBlinkMode
Sets whether or not the cursor will blink.
-
#cursor_blink_mode=(cursor_blink_mode) ⇒ Vte::CursorBlinkMode
Sets whether or not the cursor will blink.
-
#cursor_shape ⇒ Vte::CursorShape
Controls the shape of the cursor.
-
#cursor_shape=(cursor_shape) ⇒ Vte::CursorShape
Controls the shape of the cursor.
-
#delete_binding ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the delete key.
-
#delete_binding=(delete_binding) ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the delete key.
-
#enable_bidi ⇒ Boolean
Checks whether the terminal performs bidirectional text rendering.
-
#enable_bidi=(enable_bidi) ⇒ Boolean
Controls whether or not the terminal will perform bidirectional text rendering.
-
#enable_bidi? ⇒ Boolean
Controls whether or not the terminal will perform bidirectional text rendering.
-
#enable_fallback_scrolling ⇒ Boolean
True if fallback scrolling is enabled.
- #enable_fallback_scrolling=(enable_fallback_scrolling) ⇒ Boolean
-
#enable_fallback_scrolling? ⇒ Boolean
Enable-fallback-scrolling.
-
#enable_shaping ⇒ Boolean
Checks whether the terminal shapes Arabic text.
-
#enable_shaping=(enable_shaping) ⇒ Boolean
Controls whether or not the terminal will shape Arabic text.
-
#enable_shaping? ⇒ Boolean
Controls whether or not the terminal will shape Arabic text.
-
#enable_sixel ⇒ Boolean
False.
-
#enable_sixel=(enable_sixel) ⇒ Boolean
Controls whether SIXEL image support is enabled.
-
#enable_sixel? ⇒ Boolean
Controls whether SIXEL image support is enabled.
-
#encoding ⇒ String
Controls the encoding the terminal will expect data from the child to be encoded with.
-
#encoding=(encoding) ⇒ String
Controls the encoding the terminal will expect data from the child to be encoded with.
-
#feed(data, length) ⇒ nil
Interprets data as if it were data received from a child process.
-
#feed_child(text, length) ⇒ nil
Sends a block of UTF-8 text to the child as if it were entered by the user at the keyboard.
-
#feed_child_binary(data, length) ⇒ nil
Sends a block of binary data to the child.
-
#font ⇒ Pango::FontDescription
Queries the terminal for information about the fonts which will be used to draw text in the terminal.
-
#font=(font_desc) ⇒ nil
Sets the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font().
-
#font_desc ⇒ Pango::FontDescription
Specifies the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font().
-
#font_desc=(font_desc) ⇒ Pango::FontDescription
Specifies the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font().
-
#font_options ⇒ cairo::FontOptions
The terminal's font options, or nil to use the default font options.
-
#font_options=(font_options) ⇒ cairo::FontOptions
The terminal's font options, or nil to use the default font options.
-
#font_scale ⇒ Float
The terminal's font scale.
-
#font_scale=(font_scale) ⇒ Float
The terminal's font scale.
-
#get_color_background_for_draw(color) ⇒ nil
Returns the background colour, as used by terminal when drawing the background, which may be different from the color set by vte_terminal_set_color_background().
-
#get_cursor_position(column, row) ⇒ nil
Reads the location of the insertion cursor and returns it.
-
#get_text(is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal.
-
#get_text_format(format) ⇒ String
Returns text from the visible part of the terminal in the specified format.
-
#get_text_include_trailing_spaces(is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal.
-
#get_text_range(start_row, start_col, end_row, end_col, is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal.
-
#get_text_range_format(format, start_row, start_col, end_row, end_col, length) ⇒ String
Returns the specified range of text in the specified format.
-
#get_text_selected(format) ⇒ String
Gets the currently selected text in the format specified by format.
-
#get_text_selected_full(format, length) ⇒ String
Gets the currently selected text in the format specified by format.
-
#has_selection ⇒ Boolean
Checks if the terminal currently contains selected text.
-
#hyperlink_hover_uri ⇒ String
The currently hovered hyperlink URI, or nil if unset.
-
#hyperlink_hover_uri=(hyperlink_hover_uri) ⇒ String
The currently hovered hyperlink URI, or nil if unset.
-
#icon_title ⇒ String
Icon-title.
- #icon_title=(icon_title) ⇒ String
-
#initialize ⇒ Vte::Terminal
constructor
Creates a new terminal widget.
-
#input_enabled ⇒ Boolean
Returns whether the terminal allow user input.
-
#input_enabled=(input_enabled) ⇒ Boolean
Controls whether the terminal allows user input.
-
#input_enabled? ⇒ Boolean
Controls whether the terminal allows user input.
-
#match_add_regex(regex, flags) ⇒ Integer
Adds the regular expression regex to the list of matching expressions.
-
#match_check(column, row, tag) ⇒ String
Checks if the text in and around the specified position matches any of the regular expressions previously set using vte_terminal_match_add().
-
#match_remove(tag) ⇒ nil
Removes the regular expression which is associated with the given tag from the list of expressions which the terminal will highlight when the user moves the mouse cursor over matching text.
-
#match_remove_all ⇒ nil
Clears the list of regular expressions the terminal uses to highlight text when the user moves the mouse cursor.
-
#match_set_cursor(tag, cursor) ⇒ nil
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.
-
#match_set_cursor_name(tag, cursor_name) ⇒ nil
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.
-
#mouse_autohide ⇒ Boolean
Determines the value of the terminal's mouse autohide setting.
-
#mouse_autohide=(setting) ⇒ nil
Changes the value of the terminal's mouse autohide setting.
-
#paste_clipboard ⇒ nil
Sends the contents of the #GDK_SELECTION_CLIPBOARD selection to the terminal's child.
-
#paste_primary ⇒ nil
Sends the contents of the #GDK_SELECTION_PRIMARY selection to the terminal's child.
-
#paste_text(text) ⇒ nil
Sends text to the terminal's child as if retrived from the clipboard, this differs from vte_terminal_feed_child() in that it may process text before passing it to the child (e.g. apply bracketed mode).
-
#pointer_autohide=(pointer_autohide) ⇒ Boolean
Controls the value of the terminal's mouse autohide setting.
-
#pointer_autohide? ⇒ Boolean
Controls the value of the terminal's mouse autohide setting.
-
#pty ⇒ Vte::Pty
The PTY object for the terminal.
-
#pty=(pty) ⇒ Vte::Pty
The PTY object for the terminal.
-
#pty_new_sync(flags, cancellable) ⇒ Vte::Pty
Creates a new Vte::Pty, sets the emulation property from Vte::Terminal:emulation, and sets the size using terminal's size.
-
#reset(clear_tabstops, clear_history) ⇒ nil
Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.
-
#rewrap_on_resize ⇒ Boolean
Checks whether or not the terminal will rewrap its contents upon resize.
-
#rewrap_on_resize=(rewrap_on_resize) ⇒ Boolean
Controls whether or not the terminal will rewrap its contents, including the scrollback buffer, whenever the terminal's width changes.
-
#rewrap_on_resize? ⇒ Boolean
Controls whether or not the terminal will rewrap its contents, including the scrollback buffer, whenever the terminal's width changes.
-
#row_count ⇒ Vte::glong
The number of rows.
-
#scroll_on_insert ⇒ Boolean
the viewable history when the new data is received from the child.
-
#scroll_on_insert=(scroll_on_insert) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the text is inserted (e.g. by a paste).
-
#scroll_on_insert? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the text is inserted (e.g. by a paste).
-
#scroll_on_keystroke ⇒ Boolean
the viewable history when the user presses a key.
-
#scroll_on_keystroke=(scroll_on_keystroke) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the user presses a key.
-
#scroll_on_keystroke? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the user presses a key.
-
#scroll_on_output ⇒ Boolean
the viewable history when the new data is received from the child.
-
#scroll_on_output=(scroll_on_output) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the new data is received from the child.
-
#scroll_on_output? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the new data is received from the child.
-
#scroll_unit_is_pixels ⇒ Boolean
True if the scroll unit is pixels; or false if the unit is lines.
-
#scroll_unit_is_pixels=(scroll_unit_is_pixels) ⇒ Boolean
Controls whether the terminal's GtkAdjustment values unit is lines or pixels.
-
#scroll_unit_is_pixels? ⇒ Boolean
Controls whether the terminal's GtkAdjustment values unit is lines or pixels.
-
#scrollback_lines ⇒ Integer
The length of the scrollback buffer used by the terminal.
-
#scrollback_lines=(scrollback_lines) ⇒ Integer
The length of the scrollback buffer used by the terminal.
-
#search_find_next ⇒ Boolean
Searches the next string matching the search regex set with vte_terminal_search_set_regex().
-
#search_find_previous ⇒ Boolean
Searches the previous string matching the search regex set with vte_terminal_search_set_regex().
-
#search_get_regex ⇒ Vte::Regex
The search Vte::Regex regex set in terminal, or nil.
-
#search_get_wrap_around ⇒ Boolean
Whether searching will wrap around.
-
#search_set_regex(regex, flags) ⇒ nil
Sets the regex to search for.
-
#search_set_wrap_around(wrap_around) ⇒ nil
Sets whether search should wrap around to the beginning of the terminal content when reaching its end.
-
#select_all ⇒ nil
Selects all text within the terminal (not including the scrollback buffer).
-
#set_colors(foreground, background, palette, palette_size) ⇒ nil
palette specifies the new values for the 256 palette colors: 8 standard colors, their 8 bright counterparts, 6x6x6 color cube, and 24 grayscale colors.
-
#set_default_colors ⇒ nil
Reset the terminal palette to reasonable compiled-in default color.
-
#set_size(columns, rows) ⇒ nil
Attempts to change the terminal's size in terms of rows and columns.
- #spawn(options = {}) ⇒ Object
-
#spawn_async(pty_flags, working_directory, argv, envv, spawn_flags, child_setup, child_setup_data, child_setup_data_destroy, timeout, cancellable, callback, user_data) ⇒ nil
A convenience function that wraps creating the Vte::Pty and spawning the child process on it.
-
#spawn_sync(pty_flags, working_directory, argv, envv, spawn_flags, child_setup, child_setup_data, child_pid, cancellable) ⇒ Boolean
Starts the specified command under a newly-allocated controlling pseudo-terminal.
-
#spawn_with_fds_async(pty_flags, working_directory, argv, envv, fds, n_fds, map_fds, n_map_fds, spawn_flags, child_setup, child_setup_data, child_setup_data_destroy, timeout, cancellable, callback, user_data) ⇒ nil
A convenience function that wraps creating the Vte::Pty and spawning the child process on it.
-
#text_blink_mode ⇒ Vte::TextBlinkMode
Controls whether or not the terminal will allow blinking text.
-
#text_blink_mode=(text_blink_mode) ⇒ Vte::TextBlinkMode
Controls whether or not the terminal will allow blinking text.
-
#unselect_all ⇒ nil
Clears the current selection.
-
#watch_child(child_pid) ⇒ nil
Watches child_pid.
-
#window_title ⇒ String
The terminal's title.
-
#window_title=(window_title) ⇒ String
The terminal's title.
-
#word_char_exceptions ⇒ String
The set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
-
#word_char_exceptions=(word_char_exceptions) ⇒ String
The set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
-
#write_contents_sync(stream, flags, cancellable) ⇒ Boolean
Write contents of the current contents of terminal (including any scrollback history) to stream according to flags.
-
#xalign ⇒ Vte::Align
The horizontal alignment of terminal within its allocation.
-
#xalign=(xalign) ⇒ Vte::Align
The horizontal alignment of terminal within its allocation.
-
#xfill ⇒ Boolean
The horizontal fillment of terminal within its allocation.
-
#xfill=(xfill) ⇒ Boolean
The horizontal fillment of terminal within its allocation.
-
#xfill? ⇒ Boolean
The horizontal fillment of terminal within its allocation.
-
#yalign ⇒ Vte::Align
The vertical alignment of terminal within its allocation.
-
#yalign=(yalign) ⇒ Vte::Align
The vertical alignment of terminal within its allocation.
-
#yfill ⇒ Boolean
The vertical fillment of terminal within its allocation.
-
#yfill=(yfill) ⇒ Boolean
The vertical fillment of terminal within its allocation.
-
#yfill? ⇒ Boolean
The vertical fillment of terminal within its allocation.
Constructor Details
#initialize ⇒ Vte::Terminal
Creates a new terminal widget.
Instance Method Details
#allow_bold ⇒ Boolean
Checks whether or not the terminal will attempt to draw bold text, by using a bold font variant.
#allow_bold=(allow_bold) ⇒ Boolean
Controls whether or not the terminal will attempt to draw bold text, by using a bold font variant.
#allow_bold? ⇒ Boolean
Controls whether or not the terminal will attempt to draw bold text, by using a bold font variant.
#allow_hyperlink ⇒ Boolean
Checks whether or not hyperlinks (OSC 8 escape sequence) are allowed.
#allow_hyperlink=(allow_hyperlink) ⇒ Boolean
Controls whether or not hyperlinks (OSC 8 escape sequence) are recognized and displayed.
#allow_hyperlink? ⇒ Boolean
Controls whether or not hyperlinks (OSC 8 escape sequence) are recognized and displayed.
#audible_bell ⇒ Boolean
Checks whether or not the terminal will beep when the child outputs the "bl" sequence.
#audible_bell=(audible_bell) ⇒ Boolean
Controls whether or not the terminal will beep when the child outputs the "bl" sequence.
#audible_bell? ⇒ Boolean
Controls whether or not the terminal will beep when the child outputs the "bl" sequence.
#backspace_binding ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the backspace key.
#backspace_binding=(backspace_binding) ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the backspace key.
#bold_is_bright ⇒ Boolean
Checks whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
#bold_is_bright=(bold_is_bright) ⇒ Boolean
Whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
#bold_is_bright? ⇒ Boolean
Whether the SGR 1 attribute also switches to the bright counterpart of the first 8 palette colors, in addition to making them bold (legacy behavior) or if SGR 1 only enables bold and leaves the color intact.
#cell_height_scale ⇒ Float
Scale factor for the cell height, to increase line spacing. (The font's height is not affected.)
#cell_height_scale=(cell_height_scale) ⇒ Float
Scale factor for the cell height, to increase line spacing. (The font's height is not affected.)
#cell_width_scale ⇒ Float
Scale factor for the cell width, to increase letter spacing. (The font's width is not affected.)
#cell_width_scale=(cell_width_scale) ⇒ Float
Scale factor for the cell width, to increase letter spacing. (The font's width is not affected.)
#char_height ⇒ Vte::glong
Note that this method should rather be called vte_terminal_get_cell_height, because the return value takes cell-height-scale into account.
#char_width ⇒ Vte::glong
Note that this method should rather be called vte_terminal_get_cell_width, because the return value takes cell-width-scale into account.
#check_hyperlink_at(x, y) ⇒ String
Returns a nonempty string: the target of the explicit hyperlink (printed using the OSC 8 escape sequence) at the position (x, y), or nil.
Proper use of the escape sequence should result in URI-encoded URIs with a proper scheme like "http://", "https://", "file://", "mailto:" etc. This is, however, not enforced by VTE. The caller must tolerate the returned string potentially not being a valid URI.
#check_match_at(x, y, tag) ⇒ String
Checks if the text in and around the position (x, y) matches any of the regular expressions previously set using vte_terminal_match_add(). If a match exists, the text string is returned and if tag is not nil, the number associated with the matched regular expression will be stored in tag.
If more than one regular expression has been set with vte_terminal_match_add(), then expressions are checked in the order in which they were added.
#check_regex_array_at(x, y, regexes, n_regexes, match_flags, n_matches) ⇒ Array<String>
Like vte_terminal_check_regex_simple_at(), but returns an array of strings, containing the matching text (or nil if no match) corresponding to each of the regexes in regexes.
You must free each string and the array; but note that this is not a nil-terminated string array, and so you must not use g_strfreev() on it.
#check_regex_simple_at(x, y, regexes, n_regexes, match_flags, matches) ⇒ Boolean
Checks each regex in regexes if the text in and around the position (x, y) matches the regular expressions. If a match exists, the matched text is stored in matches at the position of the regex in regexes; otherwise nil is stored there. Each non-nil element of matches should be freed with g_free().
Note that the regexes in regexes should have been created using the %PCRE2_MULTILINE flag.
#cjk_ambiguous_width ⇒ Integer
This setting controls whether ambiguous-width characters are narrow or wide. (Note that when using a non-UTF-8 encoding set via vte_terminal_set_encoding(), the width of ambiguous-width characters is fixed and determined by the encoding itself.)
This setting only takes effect the next time the terminal is reset, either via escape sequence or with vte_terminal_reset().
#cjk_ambiguous_width=(cjk_ambiguous_width) ⇒ Integer
This setting controls whether ambiguous-width characters are narrow or wide. (Note that when using a non-UTF-8 encoding set via vte_terminal_set_encoding(), the width of ambiguous-width characters is fixed and determined by the encoding itself.)
This setting only takes effect the next time the terminal is reset, either via escape sequence or with vte_terminal_reset().
#clear_background=(setting) ⇒ nil
Sets whether to paint the background with the background colour. The default is true.
This function is rarely useful. One use for it is to add a background image to the terminal.
#color_background=(background) ⇒ nil
Sets the background color for text which does not have a specific background color assigned. Only has effect when no background image is set and when the terminal is not transparent.
#color_bold=(bold) ⇒ nil
Sets the color used to draw bold text in the default foreground color. If bold is nil then the default color is used.
#color_cursor=(cursor_background) ⇒ nil
Sets the background color for text which is under the cursor. If nil, text under the cursor will be drawn with foreground and background colors reversed.
#color_cursor_foreground=(cursor_foreground) ⇒ nil
Sets the foreground color for text which is under the cursor. If nil, text under the cursor will be drawn with foreground and background colors reversed.
#color_foreground=(foreground) ⇒ nil
Sets the foreground color used to draw normal text.
#color_highlight=(highlight_background) ⇒ nil
Sets the background color for text which is highlighted. If nil, it is unset. If neither highlight background nor highlight foreground are set, highlighted text (which is usually highlighted because it is selected) will be drawn with foreground and background colors reversed.
#color_highlight_foreground=(highlight_foreground) ⇒ nil
Sets the foreground color for text which is highlighted. If nil, it is unset. If neither highlight background nor highlight foreground are set, highlighted text (which is usually highlighted because it is selected) will be drawn with foreground and background colors reversed.
#column_count ⇒ Vte::glong
Returns the number of columns.
#context_menu ⇒ Gtk::Popover
The menu used for context menus. Note that context menu model set with the Vte::Terminal::context-menu-model property or vte_terminal_set_context_menu_model() takes precedence over this.
#context_menu=(context_menu) ⇒ Gtk::Popover
The menu used for context menus. Note that context menu model set with the Vte::Terminal::context-menu-model property or vte_terminal_set_context_menu_model() takes precedence over this.
#context_menu_model ⇒ Gio::MenuModel
The menu model used for context menus. If non-nil, the context menu is generated from this model, and overrides a context menu set with the Vte::Terminal::context-menu property or vte_terminal_set_context_menu().
#context_menu_model=(context_menu_model) ⇒ Gio::MenuModel
The menu model used for context menus. If non-nil, the context menu is generated from this model, and overrides a context menu set with the Vte::Terminal::context-menu property or vte_terminal_set_context_menu().
#copy_clipboard ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_CLIPBOARD selection.
#copy_clipboard_format(format) ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_CLIPBOARD selection in the form specified by format.
For all formats, the selection data (see Gtk::SelectionData) will include the text targets (see gtk_target_list_add_text_targets() and gtk_selection_data_targets_includes_text()). For %VTE_FORMAT_HTML, the selection will also include the "text/html" target, which when requested, returns the HTML data in UTF-16 with a U+FEFF BYTE ORDER MARK character at the start.
#copy_primary ⇒ nil
Places the selected text in the terminal in the #GDK_SELECTION_PRIMARY selection.
#current_directory_uri ⇒ String
The current directory URI, or nil if unset.
#current_directory_uri=(current_directory_uri) ⇒ String
The current directory URI, or nil if unset.
#current_file_uri ⇒ String
The current file URI, or nil if unset.
#current_file_uri=(current_file_uri) ⇒ String
The current file URI, or nil if unset.
#cursor_blink_mode ⇒ Vte::CursorBlinkMode
Sets whether or not the cursor will blink. Using %VTE_CURSOR_BLINK_SYSTEM will use the Gtk::Settings:gtk-cursor-blink setting.
#cursor_blink_mode=(cursor_blink_mode) ⇒ Vte::CursorBlinkMode
Sets whether or not the cursor will blink. Using %VTE_CURSOR_BLINK_SYSTEM will use the Gtk::Settings:gtk-cursor-blink setting.
#cursor_shape ⇒ Vte::CursorShape
Controls the shape of the cursor.
#cursor_shape=(cursor_shape) ⇒ Vte::CursorShape
Controls the shape of the cursor.
#delete_binding ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the delete key.
#delete_binding=(delete_binding) ⇒ Vte::EraseBinding
Controls what string or control sequence the terminal sends to its child when the user presses the delete key.
#enable_bidi ⇒ Boolean
Checks whether the terminal performs bidirectional text rendering.
#enable_bidi=(enable_bidi) ⇒ Boolean
Controls whether or not the terminal will perform bidirectional text rendering.
#enable_bidi? ⇒ Boolean
Controls whether or not the terminal will perform bidirectional text rendering.
#enable_fallback_scrolling ⇒ Boolean
Returns true if fallback scrolling is enabled.
#enable_fallback_scrolling=(enable_fallback_scrolling) ⇒ Boolean
#enable_fallback_scrolling? ⇒ Boolean
Returns enable-fallback-scrolling.
#enable_shaping ⇒ Boolean
Checks whether the terminal shapes Arabic text.
#enable_shaping=(enable_shaping) ⇒ Boolean
Controls whether or not the terminal will shape Arabic text.
#enable_shaping? ⇒ Boolean
Controls whether or not the terminal will shape Arabic text.
#enable_sixel ⇒ Boolean
Returns false.
#enable_sixel=(enable_sixel) ⇒ Boolean
Controls whether SIXEL image support is enabled.
#enable_sixel? ⇒ Boolean
Controls whether SIXEL image support is enabled.
#encoding ⇒ String
Controls the encoding the terminal will expect data from the child to be encoded with. For certain terminal types, applications executing in the terminal can change the encoding. The default is defined by the application's locale settings.
#encoding=(encoding) ⇒ String
Controls the encoding the terminal will expect data from the child to be encoded with. For certain terminal types, applications executing in the terminal can change the encoding. The default is defined by the application's locale settings.
#feed(data, length) ⇒ nil
Interprets data as if it were data received from a child process.
#feed_child(text, length) ⇒ nil
Sends a block of UTF-8 text to the child as if it were entered by the user at the keyboard.
#feed_child_binary(data, length) ⇒ nil
Sends a block of binary data to the child.
#font ⇒ Pango::FontDescription
Queries the terminal for information about the fonts which will be used to draw text in the terminal. The actual font takes the font scale into account, this is not reflected in the return value, the unscaled font is returned. terminal uses to render text at the default font scale of 1.0.
#font=(font_desc) ⇒ nil
Sets the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font(). The terminal will immediately attempt to load the desired font, retrieve its metrics, and attempt to resize itself to keep the same number of rows and columns. The font scale is applied to the specified font.
#font_desc ⇒ Pango::FontDescription
Specifies the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font(). The terminal will immediately attempt to load the desired font, retrieve its metrics, and attempt to resize itself to keep the same number of rows and columns.
#font_desc=(font_desc) ⇒ Pango::FontDescription
Specifies the font used for rendering all text displayed by the terminal, overriding any fonts set using gtk_widget_modify_font(). The terminal will immediately attempt to load the desired font, retrieve its metrics, and attempt to resize itself to keep the same number of rows and columns.
#font_options ⇒ cairo::FontOptions
The terminal's font options, or nil to use the default font options.
Note that on GTK4, the terminal by default uses font options with %CAIRO_HINT_METRICS_ON set; to override that, use this function to set a #cairo_font_options_t that has %CAIRO_HINT_METRICS_OFF set.
#font_options=(font_options) ⇒ cairo::FontOptions
The terminal's font options, or nil to use the default font options.
Note that on GTK4, the terminal by default uses font options with %CAIRO_HINT_METRICS_ON set; to override that, use this function to set a #cairo_font_options_t that has %CAIRO_HINT_METRICS_OFF set.
#font_scale ⇒ Float
The terminal's font scale.
#font_scale=(font_scale) ⇒ Float
The terminal's font scale.
#get_color_background_for_draw(color) ⇒ nil
Returns the background colour, as used by terminal when drawing the background, which may be different from the color set by vte_terminal_set_color_background().
Note: you must only call this function while handling the GtkWidget::draw signal.
This function is rarely useful. One use for it is if you disable drawing the background (see vte_terminal_set_clear_background()) and then need to draw the background yourself.
#get_cursor_position(column, row) ⇒ nil
Reads the location of the insertion cursor and returns it. The row coordinate is absolute.
This method is unaware of BiDi. The returned column is logical column.
#get_text(is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal.
This method is unaware of BiDi. The columns returned in attributes are logical columns.
Note: since 0.68, passing a non-nil attributes parameter is deprecated. Starting with 0.72, passing a non-nil attributes parameter will make this function itself return nil. Since 0.72, passing a non-nil is_selected parameter will make this function itself return nil.
#get_text_format(format) ⇒ String
Returns text from the visible part of the terminal in the specified format.
This method is unaware of BiDi. The columns returned in attributes are logical columns.
#get_text_include_trailing_spaces(is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal.
This method is unaware of BiDi. The columns returned in attributes are logical columns.
Note: since 0.68, passing a non-nil array parameter is deprecated. Starting with 0.72, passing a non-nil array parameter will make this function itself return nil. Since 0.72, passing a non-nil is_selected parameter will make this function itself return nil.
#get_text_range(start_row, start_col, end_row, end_col, is_selected, user_data, attributes) ⇒ String
Extracts a view of the visible part of the terminal. The entire scrollback buffer is scanned, so it is possible to read the entire contents of the buffer using this function.
This method is unaware of BiDi. The columns passed in start_col and end_row, and returned in attributes are logical columns.
Since 0.68, passing a non-nil array parameter is deprecated. Since 0.72, passing a non-nil array parameter will make this function itself return nil. Since 0.72, passing a non-nil is_selected function will make this function itself return nil.
#get_text_range_format(format, start_row, start_col, end_row, end_col, length) ⇒ String
Returns the specified range of text in the specified format.
#get_text_selected(format) ⇒ String
Gets the currently selected text in the format specified by format. Since 0.72, this function also supports %VTE_FORMAT_HTML format.
#get_text_selected_full(format, length) ⇒ String
Gets the currently selected text in the format specified by format.
#has_selection ⇒ Boolean
Checks if the terminal currently contains selected text. Note that this is different from determining if the terminal is the owner of any Gtk::Clipboard items.
#hyperlink_hover_uri ⇒ String
The currently hovered hyperlink URI, or nil if unset.
#hyperlink_hover_uri=(hyperlink_hover_uri) ⇒ String
The currently hovered hyperlink URI, or nil if unset.
#icon_title ⇒ String
Returns icon-title.
#icon_title=(icon_title) ⇒ String
#input_enabled ⇒ Boolean
Returns whether the terminal allow user input.
#input_enabled=(input_enabled) ⇒ Boolean
Controls whether the terminal allows user input. When user input is disabled, key press and mouse button press and motion events are not sent to the terminal's child.
#input_enabled? ⇒ Boolean
Controls whether the terminal allows user input. When user input is disabled, key press and mouse button press and motion events are not sent to the terminal's child.
#match_add_regex(regex, flags) ⇒ Integer
Adds the regular expression regex to the list of matching expressions. When the user moves the mouse cursor over a section of displayed text which matches this expression, the text will be highlighted.
Note that regex should have been created using the PCRE2_MULTILINE flag.
#match_check(column, row, tag) ⇒ String
Checks if the text in and around the specified position matches any of the regular expressions previously set using vte_terminal_match_add(). If a match exists, the text string is returned and if tag is not nil, the number associated with the matched regular expression will be stored in tag.
If more than one regular expression has been set with vte_terminal_match_add(), then expressions are checked in the order in which they were added.
#match_remove(tag) ⇒ nil
Removes the regular expression which is associated with the given tag from the list of expressions which the terminal will highlight when the user moves the mouse cursor over matching text.
#match_remove_all ⇒ nil
Clears the list of regular expressions the terminal uses to highlight text when the user moves the mouse cursor.
#match_set_cursor(tag, cursor) ⇒ nil
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag. The terminal keeps a reference to cursor.
#match_set_cursor_name(tag, cursor_name) ⇒ nil
Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.
#mouse_autohide ⇒ Boolean
Determines the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse. This setting can be changed using vte_terminal_set_mouse_autohide().
#mouse_autohide=(setting) ⇒ nil
Changes the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse. This setting can be read using vte_terminal_get_mouse_autohide().
#paste_clipboard ⇒ nil
Sends the contents of the #GDK_SELECTION_CLIPBOARD selection to the terminal's child. It's called on paste menu item, or when user presses Shift+Insert.
#paste_primary ⇒ nil
Sends the contents of the #GDK_SELECTION_PRIMARY selection to the terminal's child. The terminal will call also paste the #GDK_SELECTION_PRIMARY selection when the user clicks with the the second mouse button.
#paste_text(text) ⇒ nil
Sends text to the terminal's child as if retrived from the clipboard, this differs from vte_terminal_feed_child() in that it may process text before passing it to the child (e.g. apply bracketed mode)
#pointer_autohide=(pointer_autohide) ⇒ Boolean
Controls the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse.
#pointer_autohide? ⇒ Boolean
Controls the value of the terminal's mouse autohide setting. When autohiding is enabled, the mouse cursor will be hidden when the user presses a key and shown when the user moves the mouse.
#pty ⇒ Vte::Pty
The PTY object for the terminal.
#pty=(pty) ⇒ Vte::Pty
The PTY object for the terminal.
#pty_new_sync(flags, cancellable) ⇒ Vte::Pty
Creates a new Vte::Pty, sets the emulation property from Vte::Terminal:emulation, and sets the size using terminal's size.
See vte_pty_new() for more information.
#reset(clear_tabstops, clear_history) ⇒ nil
Resets as much of the terminal's internal state as possible, discarding any unprocessed input data, resetting character attributes, cursor state, national character set state, status line, terminal modes (insert/delete), selection state, and encoding.
#rewrap_on_resize ⇒ Boolean
Checks whether or not the terminal will rewrap its contents upon resize.
#rewrap_on_resize=(rewrap_on_resize) ⇒ Boolean
Controls whether or not the terminal will rewrap its contents, including the scrollback buffer, whenever the terminal's width changes.
#rewrap_on_resize? ⇒ Boolean
Controls whether or not the terminal will rewrap its contents, including the scrollback buffer, whenever the terminal's width changes.
#row_count ⇒ Vte::glong
Returns the number of rows.
#scroll_on_insert ⇒ Boolean
the viewable history when the new data is received from the child.
#scroll_on_insert=(scroll_on_insert) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the text is inserted (e.g. by a paste).
#scroll_on_insert? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the text is inserted (e.g. by a paste).
#scroll_on_keystroke ⇒ Boolean
the viewable history when the user presses a key. Modifier keys do not trigger this behavior.
#scroll_on_keystroke=(scroll_on_keystroke) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the user presses a key. Modifier keys do not trigger this behavior.
#scroll_on_keystroke? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the user presses a key. Modifier keys do not trigger this behavior.
#scroll_on_output ⇒ Boolean
the viewable history when the new data is received from the child.
#scroll_on_output=(scroll_on_output) ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the new data is received from the child.
#scroll_on_output? ⇒ Boolean
Controls whether or not the terminal will forcibly scroll to the bottom of the viewable history when the new data is received from the child.
#scroll_unit_is_pixels ⇒ Boolean
Returns true if the scroll unit is pixels; or false if the unit is lines.
#scroll_unit_is_pixels=(scroll_unit_is_pixels) ⇒ Boolean
Controls whether the terminal's GtkAdjustment values unit is lines or pixels. This can be enabled when the terminal is the child of a GtkScrolledWindow to fix some bugs with its kinetic scrolling.
#scroll_unit_is_pixels? ⇒ Boolean
Controls whether the terminal's GtkAdjustment values unit is lines or pixels. This can be enabled when the terminal is the child of a GtkScrolledWindow to fix some bugs with its kinetic scrolling.
#scrollback_lines ⇒ Integer
The length of the scrollback buffer used by the terminal. The size of the scrollback buffer will be set to the larger of this value and the number of visible rows the widget can display, so 0 can safely be used to disable scrollback. Note that this setting only affects the normal screen buffer. For terminal types which have an alternate screen buffer, no scrollback is allowed on the alternate screen buffer.
#scrollback_lines=(scrollback_lines) ⇒ Integer
The length of the scrollback buffer used by the terminal. The size of the scrollback buffer will be set to the larger of this value and the number of visible rows the widget can display, so 0 can safely be used to disable scrollback. Note that this setting only affects the normal screen buffer. For terminal types which have an alternate screen buffer, no scrollback is allowed on the alternate screen buffer.
#search_find_next ⇒ Boolean
Searches the next string matching the search regex set with vte_terminal_search_set_regex().
#search_find_previous ⇒ Boolean
Searches the previous string matching the search regex set with vte_terminal_search_set_regex().
#search_get_regex ⇒ Vte::Regex
Returns the search Vte::Regex regex set in terminal, or nil.
#search_get_wrap_around ⇒ Boolean
Returns whether searching will wrap around.
#search_set_regex(regex, flags) ⇒ nil
Sets the regex to search for. Unsets the search regex when passed nil.
Note that regex should have been created using the PCRE2_MULTILINE flag.
#search_set_wrap_around(wrap_around) ⇒ nil
Sets whether search should wrap around to the beginning of the terminal content when reaching its end.
#select_all ⇒ nil
Selects all text within the terminal (not including the scrollback buffer).
#set_colors(foreground, background, palette, palette_size) ⇒ nil
palette specifies the new values for the 256 palette colors: 8 standard colors, their 8 bright counterparts, 6x6x6 color cube, and 24 grayscale colors. Omitted entries will default to a hardcoded value.
palette_size must be 0, 8, 16, 232 or 256.
If foreground is nil and palette_size is greater than 0, the new foreground color is taken from palette[7]. If background is nil and palette_size is greater than 0, the new background color is taken from palette[0].
#set_default_colors ⇒ nil
Reset the terminal palette to reasonable compiled-in default color.
#set_size(columns, rows) ⇒ nil
Attempts to change the terminal's size in terms of rows and columns. If the attempt succeeds, the widget will resize itself to the proper size.
#spawn(options = {}) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/vte4/terminal.rb', line 19 def spawn(={}) pty_flags = [:pty_flags] || PtyFlags::DEFAULT working_directory = [:working_directory] argv = [:argv] || [ENV["SHELL"] || "/bin/sh"] envv = [:envv] default_spawn_flags = GLib::Spawn::SEARCH_PATH spawn_flags = [:spawn_flags] || default_spawn_flags succeeded, pid = spawn_sync(pty_flags, working_directory, argv, envv, spawn_flags) if succeeded pid else nil end end |
#spawn_async(pty_flags, working_directory, argv, envv, spawn_flags, child_setup, child_setup_data, child_setup_data_destroy, timeout, cancellable, callback, user_data) ⇒ nil
A convenience function that wraps creating the Vte::Pty and spawning the child process on it. Like vte_terminal_spawn_with_fds_async(), except that this function does not allow passing file descriptors to the child process. See vte_terminal_spawn_with_fds_async() for more information.
#spawn_sync(pty_flags, working_directory, argv, envv, spawn_flags, child_setup, child_setup_data, child_pid, cancellable) ⇒ Boolean
Starts the specified command under a newly-allocated controlling pseudo-terminal. The argv and envv lists should be nil-terminated. The "TERM" environment variable is automatically set to a default value, but can be overridden from envv. pty_flags controls logging the session to the specified system log files.
Note that %G_SPAWN_DO_NOT_REAP_CHILD will always be added to spawn_flags.
Note also that %G_SPAWN_STDOUT_TO_DEV_NULL, %G_SPAWN_STDERR_TO_DEV_NULL, and %G_SPAWN_CHILD_INHERITS_STDIN are not supported in spawn_flags, since stdin, stdout and stderr of the child process will always be connected to the PTY.
Note that all open file descriptors will be closed in the child. If you want to keep some file descriptor open for use in the child process, you need to use a child setup function that unsets the FD_CLOEXEC flag on that file descriptor.
See vte_pty_new(), g_spawn_async() and vte_terminal_watch_child() for more information.
Beginning with 0.52, sets PWD to working_directory in order to preserve symlink components. The caller should also make sure that symlinks were preserved while constructing the value of working_directory, e.g. by using vte_terminal_get_current_directory_uri(), g_get_current_dir() or get_current_dir_name().
#spawn_with_fds_async(pty_flags, working_directory, argv, envv, fds, n_fds, map_fds, n_map_fds, spawn_flags, child_setup, child_setup_data, child_setup_data_destroy, timeout, cancellable, callback, user_data) ⇒ nil
A convenience function that wraps creating the Vte::Pty and spawning the child process on it. See vte_pty_new_sync(), vte_pty_spawn_with_fds_async(), and vte_pty_spawn_finish() for more information.
When the operation is finished successfully, callback will be called with the child #GPid, and a nil #GError. The child PID will already be watched via vte_terminal_watch_child().
When the operation fails, callback will be called with a -1 #GPid, and a non-nil #GError containing the error information.
Note that %G_SPAWN_STDOUT_TO_DEV_NULL, %G_SPAWN_STDERR_TO_DEV_NULL, and %G_SPAWN_CHILD_INHERITS_STDIN are not supported in spawn_flags, since stdin, stdout and stderr of the child process will always be connected to the PTY.
If fds is not nil, the child process will map the file descriptors from fds according to map_fds; n_map_fds must be less or equal to n_fds. This function will take ownership of the file descriptors in fds; you must not use or close them after this call.
Note that all open file descriptors apart from those mapped as above will be closed in the child. (If you want to keep some other file descriptor open for use in the child process, you need to use a child setup function that unsets the FD_CLOEXEC flag on that file descriptor manually.)
Beginning with 0.60, and on linux only, and unless %VTE_SPAWN_NO_SYSTEMD_SCOPE is passed in spawn_flags, the newly created child process will be moved to its own systemd user scope; and if %VTE_SPAWN_REQUIRE_SYSTEMD_SCOPE is passed, and creation of the systemd user scope fails, the whole spawn will fail. You can override the options used for the systemd user scope by providing a systemd override file for 'vte-spawn-.scope' unit. See man:systemd.unit(5) for further information.
Note that if terminal has been destroyed before the operation is called, callback will be called with a nil terminal; you must not do anything in the callback besides freeing any resources associated with user_data, but taking care not to access the now-destroyed Vte::Terminal. Note that in this case, if spawning was successful, the child process will be aborted automatically.
Beginning with 0.52, sets PWD to working_directory in order to preserve symlink components. The caller should also make sure that symlinks were preserved while constructing the value of working_directory, e.g. by using vte_terminal_get_current_directory_uri(), g_get_current_dir() or get_current_dir_name().
#text_blink_mode ⇒ Vte::TextBlinkMode
Controls whether or not the terminal will allow blinking text.
#text_blink_mode=(text_blink_mode) ⇒ Vte::TextBlinkMode
Controls whether or not the terminal will allow blinking text.
#unselect_all ⇒ nil
Clears the current selection.
#watch_child(child_pid) ⇒ nil
Watches child_pid. When the process exists, the Vte::Terminal::child-exited signal will be called with the child's exit status.
Prior to calling this function, a Vte::Pty must have been set in terminal using vte_terminal_set_pty(). When the child exits, the terminal's Vte::Pty will be set to nil.
Note: g_child_watch_add() or g_child_watch_add_full() must not have been called for child_pid, nor a #GSource for it been created with g_child_watch_source_new().
Note: when using the g_spawn_async() family of functions, the %G_SPAWN_DO_NOT_REAP_CHILD flag MUST have been passed.
#window_title ⇒ String
The terminal's title.
#window_title=(window_title) ⇒ String
The terminal's title.
#word_char_exceptions ⇒ String
The set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
If nil, a built-in set is used.
#word_char_exceptions=(word_char_exceptions) ⇒ String
The set of characters which will be considered parts of a word when doing word-wise selection, in addition to the default which only considers alphanumeric characters part of a word.
If nil, a built-in set is used.
#write_contents_sync(stream, flags, cancellable) ⇒ Boolean
Write contents of the current contents of terminal (including any scrollback history) to stream according to flags.
If cancellable is not nil, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error %G_IO_ERROR_CANCELLED will be returned in error.
This is a synchronous operation and will make the widget (and input processing) during the write operation, which may take a long time depending on scrollback history and stream availability for writing.
#xalign ⇒ Vte::Align
The horizontal alignment of terminal within its allocation.
#xalign=(xalign) ⇒ Vte::Align
The horizontal alignment of terminal within its allocation.
#xfill ⇒ Boolean
Returns the horizontal fillment of terminal within its allocation.
#xfill=(xfill) ⇒ Boolean
The horizontal fillment of terminal within its allocation.
#xfill? ⇒ Boolean
The horizontal fillment of terminal within its allocation.
#yalign ⇒ Vte::Align
The vertical alignment of terminal within its allocation
#yalign=(yalign) ⇒ Vte::Align
The vertical alignment of terminal within its allocation
#yfill ⇒ Boolean
Returns the vertical fillment of terminal within its allocation.
#yfill=(yfill) ⇒ Boolean
The vertical fillment of terminal within its allocation. Note that Vte::Terminal:yfill=true is only supported with Vte::Terminal:yalign=%VTE_ALIGN_START, and is ignored for all other yalign values.
#yfill? ⇒ Boolean
The vertical fillment of terminal within its allocation. Note that Vte::Terminal:yfill=true is only supported with Vte::Terminal:yalign=%VTE_ALIGN_START, and is ignored for all other yalign values.