Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1110411
  • 博文数量: 309
  • 博客积分: 6093
  • 博客等级: 准将
  • 技术积分: 3038
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-03 17:14
个人简介

linux学习记录

文章分类

全部博文(309)

文章存档

2014年(2)

2012年(37)

2011年(41)

2010年(87)

2009年(54)

2008年(88)

分类:

2008-09-25 15:25:58

VteTerminal

VteTerminal — A terminal widget implementation.


Synopsis

                    VteTerminal;
enum VteTerminalEraseBinding;
GtkWidget * vte_terminal_new (void);
void vte_terminal_im_append_menuitems (VteTerminal *terminal,
GtkMenuShell *menushell);
pid_t vte_terminal_fork_command (VteTerminal *terminal,
const char *command,
char **argv,
char **envv,
const char *directory,
gboolean lastlog,
gboolean utmp,
gboolean wtmp);
pid_t vte_terminal_forkpty (VteTerminal *terminal,
char **envv,
const char *directory,
gboolean lastlog,
gboolean utmp,
gboolean wtmp);
void vte_terminal_set_pty (VteTerminal *terminal,
int pty_master);
void vte_terminal_feed (VteTerminal *terminal,
const char *data,
glong length);
void vte_terminal_feed_child (VteTerminal *terminal,
const char *text,
glong length);
void vte_terminal_feed_child_binary (VteTerminal *terminal,
const char *data,
glong length);
void vte_terminal_select_all (VteTerminal *terminal);
void vte_terminal_select_none (VteTerminal *terminal);
void vte_terminal_copy_clipboard (VteTerminal *terminal);
void vte_terminal_paste_clipboard (VteTerminal *terminal);
void vte_terminal_copy_primary (VteTerminal *terminal);
void vte_terminal_paste_primary (VteTerminal *terminal);
void vte_terminal_set_size (VteTerminal *terminal,
glong columns,
glong rows);
void vte_terminal_set_audible_bell (VteTerminal *terminal,
gboolean is_audible);
gboolean vte_terminal_get_audible_bell (VteTerminal *terminal);
void vte_terminal_set_visible_bell (VteTerminal *terminal,
gboolean is_visible);
gboolean vte_terminal_get_visible_bell (VteTerminal *terminal);
void vte_terminal_set_allow_bold (VteTerminal *terminal,
gboolean allow_bold);
gboolean vte_terminal_get_allow_bold (VteTerminal *terminal);
void vte_terminal_set_scroll_on_output (VteTerminal *terminal,
gboolean scroll);
void vte_terminal_set_scroll_on_keystroke
(VteTerminal *terminal,
gboolean scroll);
void vte_terminal_set_color_bold (VteTerminal *terminal,
const GdkColor *bold);
void vte_terminal_set_color_foreground (VteTerminal *terminal,
const GdkColor *foreground);
void vte_terminal_set_color_background (VteTerminal *terminal,
const GdkColor *background);
void vte_terminal_set_color_dim (VteTerminal *terminal,
const GdkColor *dim);
void vte_terminal_set_color_cursor (VteTerminal *terminal,
const GdkColor *cursor_background);
void vte_terminal_set_color_highlight (VteTerminal *terminal,
const GdkColor *highlight_background);
void vte_terminal_set_colors (VteTerminal *terminal,
const GdkColor *foreground,
const GdkColor *background,
const GdkColor *palette,
glong palette_size);
void vte_terminal_set_default_colors (VteTerminal *terminal);
void vte_terminal_set_opacity (VteTerminal *terminal,
guint16 opacity);
void vte_terminal_set_background_image (VteTerminal *terminal,
GdkPixbuf *image);
void vte_terminal_set_background_image_file
(VteTerminal *terminal,
const char *path);
void vte_terminal_set_background_saturation
(VteTerminal *terminal,
double saturation);
void vte_terminal_set_background_transparent
(VteTerminal *terminal,
gboolean transparent);
void vte_terminal_set_background_tint_color
(VteTerminal *terminal,
const GdkColor *color);
void vte_terminal_set_scroll_background (VteTerminal *terminal,
gboolean scroll);
void vte_terminal_set_cursor_blinks (VteTerminal *terminal,
gboolean blink);
VteTerminalCursorBlinkMode vte_terminal_get_cursor_blink_mode
(VteTerminal *terminal);
void vte_terminal_set_cursor_blink_mode (VteTerminal *terminal,
VteTerminalCursorBlinkMode mode);
void vte_terminal_set_scrollback_lines (VteTerminal *terminal,
glong lines);
void vte_terminal_set_font (VteTerminal *terminal,
const PangoFontDescription *font_desc);
void vte_terminal_set_font_from_string (VteTerminal *terminal,
const char *name);
void vte_terminal_set_font_from_string_full
(VteTerminal *terminal,
const char *name,
VteTerminalAntiAlias antialias);
void vte_terminal_set_font_full (VteTerminal *terminal,
const PangoFontDescription *font_desc,
VteTerminalAntiAlias antialias);
const PangoFontDescription * vte_terminal_get_font (VteTerminal *terminal);
gboolean vte_terminal_get_using_xft (VteTerminal *terminal);
gboolean vte_terminal_get_has_selection (VteTerminal *terminal);
void vte_terminal_set_word_chars (VteTerminal *terminal,
const char *spec);
gboolean vte_terminal_is_word_char (VteTerminal *terminal,
gunichar c);
void vte_terminal_set_backspace_binding (VteTerminal *terminal,
VteTerminalEraseBinding binding);
void vte_terminal_set_delete_binding (VteTerminal *terminal,
VteTerminalEraseBinding binding);
void vte_terminal_set_mouse_autohide (VteTerminal *terminal,
gboolean setting);
gboolean vte_terminal_get_mouse_autohide (VteTerminal *terminal);
void vte_terminal_reset (VteTerminal *terminal,
gboolean full,
gboolean clear_history);
char * vte_terminal_get_text (VteTerminal *terminal,
gboolean (is_selectedVteTerminal *terminal,glong column,glong row,gpointer data) (),
gpointer data,
GArray *attributes);
char * vte_terminal_get_text_include_trailing_spaces
(VteTerminal *terminal,
gboolean (is_selectedVteTerminal *terminal,glong column,glong row,gpointer data) (),
gpointer data,
GArray *attributes);
char * vte_terminal_get_text_range (VteTerminal *terminal,
glong start_row,
glong start_col,
glong end_row,
glong end_col,
gboolean (is_selectedVteTerminal *terminal,glong column,glong row,gpointer data) (),
gpointer data,
GArray *attributes);
void vte_terminal_get_cursor_position (VteTerminal *terminal,
glong *column,
glong *row);
void vte_terminal_match_clear_all (VteTerminal *terminal);
int vte_terminal_match_add (VteTerminal *terminal,
const char *match);
int vte_terminal_match_add_gregex (VteTerminal *terminal,
GRegex *regex,
GRegexMatchFlags flags);
void vte_terminal_match_remove (VteTerminal *terminal,
int tag);
char * vte_terminal_match_check (VteTerminal *terminal,
glong column,
glong row,
int *tag);
void vte_terminal_match_set_cursor (VteTerminal *terminal,
int tag,
GdkCursor *cursor);
void vte_terminal_match_set_cursor_type (VteTerminal *terminal,
int tag,
GdkCursorType cursor_type);
void vte_terminal_match_set_cursor_name (VteTerminal *terminal,
int tag,
const char *cursor_name);
void vte_terminal_set_emulation (VteTerminal *terminal,
const char *emulation);
const char * vte_terminal_get_emulation (VteTerminal *terminal);
const char * vte_terminal_get_default_emulation (VteTerminal *terminal);
void vte_terminal_set_encoding (VteTerminal *terminal,
const char *codeset);
const char * vte_terminal_get_encoding (VteTerminal *terminal);
const char * vte_terminal_get_status_line (VteTerminal *terminal);
void vte_terminal_get_padding (VteTerminal *terminal,
int *xpad,
int *ypad);


GtkAdjustment * vte_terminal_get_adjustment (VteTerminal *terminal);
glong vte_terminal_get_char_ascent (VteTerminal *terminal);
glong vte_terminal_get_char_descent (VteTerminal *terminal);
glong vte_terminal_get_char_height (VteTerminal *terminal);
glong vte_terminal_get_char_width (VteTerminal *terminal);
glong vte_terminal_get_column_count (VteTerminal *terminal);
const char * vte_terminal_get_icon_title (VteTerminal *terminal);
glong vte_terminal_get_row_count (VteTerminal *terminal);
const char * vte_terminal_get_window_title (VteTerminal *terminal);

Object Hierarchy

  GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----VteTerminal

Implemented Interfaces

VteTerminal implements AtkImplementorIface and GtkBuildable.

Signals

  "char-size-changed"                              : Run Last
"child-exited" : Run Last
"commit" : Run Last
"contents-changed" : Run Last
"copy-clipboard" : Run Last / Action
"cursor-moved" : Run Last
"decrease-font-size" : Run Last
"deiconify-window" : Run Last
"emulation-changed" : Run Last
"encoding-changed" : Run Last
"eof" : Run Last
"icon-title-changed" : Run Last
"iconify-window" : Run Last
"increase-font-size" : Run Last
"lower-window" : Run Last
"maximize-window" : Run Last
"move-window" : Run Last
"paste-clipboard" : Run Last / Action
"raise-window" : Run Last
"refresh-window" : Run Last
"resize-window" : Run Last
"restore-window" : Run Last
"selection-changed" : Run Last
"set-scroll-adjustments" : Run Last
"status-line-changed" : Run Last
"text-deleted" : Run Last
"text-inserted" : Run Last
"text-modified" : Run Last
"text-scrolled" : Run Last
"window-title-changed" : Run Last

Description

A VteTerminal is a terminal emulator implemented as a GTK2 widget.

Details

VteTerminal

typedef struct {
/* Widget implementation stuffs. */
GtkWidget widget;
GtkAdjustment *adjustment; /* Scrolling adjustment. */

/* Metric and sizing data. */
glong char_width, char_height; /* dimensions of character cells */
glong char_ascent, char_descent; /* important font metrics */
glong row_count, column_count; /* dimensions of the window */

/* Titles. */
char *window_title;
char *icon_title;
} VteTerminal;

All of these fields should be considered read-only.

GtkWidget widget; Base GtkWidget of the terminal widget.
GtkAdjustment *adjustment; Scroll bar adjustments.
glong char_width; Width of a narrow character cell.
glong char_height; Height of a character cell.
glong char_ascent; The distance (in pixels) from the baseline of drawn text to the top of the character cell.
glong char_descent; The distance (in pixels) from the baseline of drawn text to the bottom of the character cell.
glong row_count; Number of visible rows.
glong column_count; Number of visible columns.
char *window_title; The terminal's idea of what the window's title should be.
char *icon_title; The terminal's idea of what the window's title should be when iconified.

enum VteTerminalEraseBinding

typedef enum {
VTE_ERASE_AUTO,
VTE_ERASE_ASCII_BACKSPACE,
VTE_ERASE_ASCII_DELETE,
VTE_ERASE_DELETE_SEQUENCE
} VteTerminalEraseBinding;

An enumerated type which can be used to indicate which string the terminal should send to an application when the user presses the Delete or Backspace keys.

VTE_ERASE_AUTO For backspace, attempt to determine the right value from the terminal's IO settings. For delete, use the control sequence.
VTE_ERASE_ASCII_BACKSPACE Send an ASCII backspace character (0x08).
VTE_ERASE_ASCII_DELETE Send an ASCII delete character (0x7F).
VTE_ERASE_DELETE_SEQUENCE Send the "@7" control sequence.

vte_terminal_new ()

GtkWidget *         vte_terminal_new                    (void);

Create a new terminal widget.

Returns : a new VteTerminal object

vte_terminal_im_append_menuitems ()

void                vte_terminal_im_append_menuitems    (VteTerminal *terminal,
GtkMenuShell *menushell);

Appends menu items for various input methods to the given menu. The user can select one of these items to modify the input method used by the terminal.

terminal : a VteTerminal
menushell : a GtkMenuShell

vte_terminal_fork_command ()

pid_t               vte_terminal_fork_command           (VteTerminal *terminal,
const char *command,
char **argv,
char **envv,
const char *directory,
gboolean lastlog,
gboolean utmp,
gboolean wtmp);

Starts the specified command under a newly-allocated controlling pseudo-terminal. The argv and envv lists should be NULL-terminated, and argv[0] is expected to be the name of the file being run, as it would be if execve() were being called. TERM is automatically set to reflect the terminal widget's emulation setting. If lastlog, utmp, or wtmp are TRUE, logs the session to the specified system log files.

terminal : a VteTerminal
command : the name of a binary to run, or NULL to get user's shell
argv : the argument list to be passed to command, or NULL
envv : a list of environment variables to be added to the environment before starting command, or NULL
directory : the name of a directory the command should start in, or NULL
lastlog : TRUE if the session should be logged to the lastlog
utmp : TRUE if the session should be logged to the utmp/utmpx log
wtmp : TRUE if the session should be logged to the wtmp/wtmpx log
Returns : the ID of the new process

vte_terminal_forkpty ()

pid_t               vte_terminal_forkpty                (VteTerminal *terminal,
char **envv,
const char *directory,
gboolean lastlog,
gboolean utmp,
gboolean wtmp);

Starts a new child process under a newly-allocated controlling pseudo-terminal. TERM is automatically set to reflect the terminal widget's emulation setting. If lastlog, utmp, or wtmp are TRUE, logs the session to the specified system log files.

terminal : a VteTerminal
envv : a list of environment variables to be added to the environment before starting returning in the child process, or NULL
directory : the name of a directory the child process should change to, or NULL
lastlog : TRUE if the session should be logged to the lastlog
utmp : TRUE if the session should be logged to the utmp/utmpx log
wtmp : TRUE if the session should be logged to the wtmp/wtmpx log
Returns : the ID of the new process in the parent, 0 in the child, and -1 if there was an error

Since 0.11.11


vte_terminal_set_pty ()

void                vte_terminal_set_pty                (VteTerminal *terminal,
int pty_master);

Attach an existing PTY master side to the terminal widget. Use instead of vte_terminal_fork_command() or vte_terminal_forkpty().

terminal : a VteTerminal
pty_master : a file descriptor of the master end of a PTY

Since 0.12.1


vte_terminal_feed ()

void                vte_terminal_feed                   (VteTerminal *terminal,
const char *data,
glong length);

Interprets data as if it were data received from a child process. This can either be used to drive the terminal without a child process, or just to mess with your users.

terminal : a VteTerminal
data : a string in the terminal's current encoding
length : the length of the string

vte_terminal_feed_child ()

void                vte_terminal_feed_child             (VteTerminal *terminal,
const char *text,
glong length);

Sends a block of UTF-8 text to the child as if it were entered by the user at the keyboard.

terminal : a VteTerminal
text : data to send to the child
length : length of text in bytes, or -1 if text is NUL-terminated

vte_terminal_feed_child_binary ()

void                vte_terminal_feed_child_binary      (VteTerminal *terminal,
const char *data,
glong length);

Sends a block of binary data to the child.

terminal : a VteTerminal
data : data to send to the child
length : length of data

Since 0.12.1


vte_terminal_select_all ()

void                vte_terminal_select_all             (VteTerminal *terminal);

Selects all text within the terminal (including the scrollback buffer).

terminal : a VteTerminal

Since 0.16


vte_terminal_select_none ()

void                vte_terminal_select_none            (VteTerminal *terminal);

Clears the current selection.

terminal : a VteTerminal

Since 0.16


vte_terminal_copy_clipboard ()

void                vte_terminal_copy_clipboard         (VteTerminal *terminal);

Places the selected text in the terminal in the GDK_SELECTION_CLIPBOARD selection.

terminal : a VteTerminal

vte_terminal_paste_clipboard ()

void                vte_terminal_paste_clipboard        (VteTerminal *terminal);

Sends the contents of the GDK_SELECTION_CLIPBOARD selection to the terminal's child. If necessary, the data is converted from UTF-8 to the terminal's current encoding. It's called on paste menu item, or when user presses Shift+Insert.

terminal : a VteTerminal

vte_terminal_copy_primary ()

void                vte_terminal_copy_primary           (VteTerminal *terminal);

Places the selected text in the terminal in the GDK_SELECTION_PRIMARY selection.

terminal : a VteTerminal

vte_terminal_paste_primary ()

void                vte_terminal_paste_primary          (VteTerminal *terminal);

Sends the contents of the GDK_SELECTION_PRIMARY selection to the terminal's child. If necessary, the data is converted from UTF-8 to the terminal's current encoding. The terminal will call also paste the GDK_SELECTION_PRIMARY selection when the user clicks with the the second mouse button.

terminal : a VteTerminal

vte_terminal_set_size ()

void                vte_terminal_set_size               (VteTerminal *terminal,
glong columns,
glong rows);

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.

terminal : a VteTerminal
columns : the desired number of columns
rows : the desired number of rows

vte_terminal_set_audible_bell ()

void                vte_terminal_set_audible_bell       (VteTerminal *terminal,
gboolean is_audible);

Controls whether or not the terminal will beep when the child outputs the "bl" sequence.

terminal : a VteTerminal
is_audible : TRUE if the terminal should beep

vte_terminal_get_audible_bell ()

gboolean            vte_terminal_get_audible_bell       (VteTerminal *terminal);

Checks whether or not the terminal will beep when the child outputs the "bl" sequence.

terminal : a VteTerminal
Returns : TRUE if audible bell is enabled, FALSE if not

vte_terminal_set_visible_bell ()

void                vte_terminal_set_visible_bell       (VteTerminal *terminal,
gboolean is_visible);

Controls whether or not the terminal will present a visible bell to the user when the child outputs the "bl" sequence. The terminal will clear itself to the default foreground color and then repaint itself.

terminal : a VteTerminal
is_visible : TRUE if the terminal should flash

vte_terminal_get_visible_bell ()

gboolean            vte_terminal_get_visible_bell       (VteTerminal *terminal);

Checks whether or not the terminal will present a visible bell to the user when the child outputs the "bl" sequence. The terminal will clear itself to the default foreground color and then repaint itself.

terminal : a VteTerminal
Returns : TRUE if visible bell is enabled, FALSE if not

vte_terminal_set_allow_bold ()

void                vte_terminal_set_allow_bold         (VteTerminal *terminal,
gboolean allow_bold);

Controls whether or not the terminal will attempt to draw bold text by repainting text with a different offset.

terminal : a VteTerminal
allow_bold : TRUE if the terminal should attempt to draw bold text

vte_terminal_get_allow_bold ()

gboolean            vte_terminal_get_allow_bold         (VteTerminal *terminal);

Checks whether or not the terminal will attempt to draw bold text by repainting text with a one-pixel offset.

terminal : a VteTerminal
Returns : TRUE if bolding is enabled, FALSE if not

vte_terminal_set_scroll_on_output ()

void                vte_terminal_set_scroll_on_output   (VteTerminal *terminal,
gboolean scroll);

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.

terminal : a VteTerminal
scroll : TRUE if the terminal should scroll on output

vte_terminal_set_scroll_on_keystroke ()

void                vte_terminal_set_scroll_on_keystroke
(VteTerminal *terminal,
gboolean scroll);

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.

terminal : a VteTerminal
scroll : TRUE if the terminal should scroll on keystrokes

vte_terminal_set_color_bold ()

void                vte_terminal_set_color_bold         (VteTerminal *terminal,
const GdkColor *bold);

Sets the color used to draw bold text in the default foreground color.

terminal : a VteTerminal
bold : the new bold color

vte_terminal_set_color_foreground ()

void                vte_terminal_set_color_foreground   (VteTerminal *terminal,
const GdkColor *foreground);

Sets the foreground color used to draw normal text

terminal : a VteTerminal
foreground : the new foreground color

vte_terminal_set_color_background ()

void                vte_terminal_set_color_background   (VteTerminal *terminal,
const GdkColor *background);

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.

terminal : a VteTerminal
background : the new background color

vte_terminal_set_color_dim ()

void                vte_terminal_set_color_dim          (VteTerminal *terminal,
const GdkColor *dim);

Sets the color used to draw dim text in the default foreground color.

terminal : a VteTerminal
dim : the new dim color

vte_terminal_set_color_cursor ()

void                vte_terminal_set_color_cursor       (VteTerminal *terminal,
const GdkColor *cursor_background);

Sets the background color for text which is under the cursor. If NULL, text under the cursor will be drawn with foreground and background colors reversed.

terminal : a VteTerminal
cursor_background : the new color to use for the text cursor

Since 0.11.11


vte_terminal_set_color_highlight ()

void                vte_terminal_set_color_highlight    (VteTerminal *terminal,
const GdkColor *highlight_background);

Sets the background color for text which is highlighted. If NULL, highlighted text (which is usually highlighted because it is selected) will be drawn with foreground and background colors reversed.

terminal : a VteTerminal
highlight_background : the new color to use for highlighted text

Since 0.11.11


vte_terminal_set_colors ()

void                vte_terminal_set_colors             (VteTerminal *terminal,
const GdkColor *foreground,
const GdkColor *background,
const GdkColor *palette,
glong palette_size);

The terminal widget uses a 28-color model comprised of the default foreground and background colors, the bold foreground color, the dim foreground color, an eight color palette, bold versions of the eight color palette, and a dim version of the the eight color palette.

palette_size must be either 0, 8, 16, or 24. If foreground is NULL and palette_size is greater than 0, the new foreground color is taken from palette[7]. If background is NULL and palette_size is greater than 0, the new background color is taken from palette[0]. If palette_size is 8 or 16, the third (dim) and possibly the second (bold) 8-color palettes are extrapolated from the new background color and the items in palette.

terminal : a VteTerminal
foreground : the new foreground color, or NULL
background : the new background color, or NULL
palette : the color palette
palette_size : the number of entries in palette

vte_terminal_set_default_colors ()

void                vte_terminal_set_default_colors     (VteTerminal *terminal);

Reset the terminal palette to reasonable compiled-in defaults.

terminal : a VteTerminal

vte_terminal_set_opacity ()

void                vte_terminal_set_opacity            (VteTerminal *terminal,
guint16 opacity);

Sets the opacity of the terminal background, were 0 means completely transparent and 65535 means completely opaque.

terminal : a VteTerminal
opacity : the new opacity

vte_terminal_set_background_image ()

void                vte_terminal_set_background_image   (VteTerminal *terminal,
GdkPixbuf *image);

Sets a background image for the widget. Text which would otherwise be drawn using the default background color will instead be drawn over the specified image. If necessary, the image will be tiled to cover the widget's entire visible area. If specified by vte_terminal_set_background_saturation(), the terminal will tint its in-memory copy of the image before applying it to the terminal.

terminal : a VteTerminal
image : a GdkPixbuf to use, or NULL to cancel

vte_terminal_set_background_image_file ()

void                vte_terminal_set_background_image_file
(VteTerminal *terminal,
const char *path);

Sets a background image for the widget. If specified by vte_terminal_set_background_saturation(), the terminal will tint its in-memory copy of the image before applying it to the terminal.

terminal : a VteTerminal
path : path to an image file

vte_terminal_set_background_saturation ()

void                vte_terminal_set_background_saturation
(VteTerminal *terminal,
double saturation);

If a background image has been set using vte_terminal_set_background_image(), vte_terminal_set_background_image_file(), or vte_terminal_set_background_transparent(), and the saturation value is less than 1.0, the terminal will adjust the colors of the image before drawing the image. To do so, the terminal will create a copy of the background image (or snapshot of the root window) and modify its pixel values.

terminal : a VteTerminal
saturation : a floating point value between 0.0 and 1.0.

vte_terminal_set_background_transparent ()

void                vte_terminal_set_background_transparent
(VteTerminal *terminal,
gboolean transparent);

Sets the terminal's background image to the pixmap stored in the root window, adjusted so that if there are no windows below your application, the widget will appear to be transparent.

terminal : a VteTerminal
transparent : TRUE if the terminal should fake transparency

vte_terminal_set_background_tint_color ()

void                vte_terminal_set_background_tint_color
(VteTerminal *terminal,
const GdkColor *color);

If a background image has been set using vte_terminal_set_background_image(), vte_terminal_set_background_image_file(), or vte_terminal_set_background_transparent(), and the value set by vte_terminal_set_background_saturation() is less than one, the terminal will adjust the color of the image before drawing the image. To do so, the terminal will create a copy of the background image (or snapshot of the root window) and modify its pixel values. The initial tint color is black.

terminal : a VteTerminal
color : a color which the terminal background should be tinted to if its saturation is not 1.0.

Since 0.11


vte_terminal_set_scroll_background ()

void                vte_terminal_set_scroll_background  (VteTerminal *terminal,
gboolean scroll);

Controls whether or not the terminal will scroll the background image (if one is set) when the text in the window must be scrolled.

terminal : a VteTerminal
scroll : TRUE if the terminal should scroll the background image along with text.

Since 0.11


vte_terminal_set_cursor_blinks ()

void                vte_terminal_set_cursor_blinks      (VteTerminal *terminal,
gboolean blink);

Warning

vte_terminal_set_cursor_blinks is deprecated and should not be used in newly-written code. 0.16.15 Use vte_terminal_set_cursor_blink_mode() instead.

Sets whether or not the cursor will blink.

terminal : a VteTerminal
blink : TRUE if the cursor should blink

vte_terminal_get_cursor_blink_mode ()

VteTerminalCursorBlinkMode  vte_terminal_get_cursor_blink_mode
(VteTerminal *terminal);

terminal : a VteTerminal
Returns : the cursor blink mode.

Since 0.16.15






阅读(1825) | 评论(0) | 转发(0) |
0

上一篇:相关命令

下一篇:VteTerminal(二)

给主人留下些什么吧!~~