vte-0.11.0: Binding to the VTE library.

Portabilityportable (depends on GHC)
Stabilityprovisional
Maintainergtk2hs-users@lists.sourceforge.net

Graphics.UI.Gtk.Vte.Vte

Contents

Description

A terminal widget

Synopsis

Types

type VteSelect = Int -> Int -> BoolSource

A predicate that states which characters are of interest. The predicate p c r where p :: VteSelect, should return True if the character at column c and row r should be extracted.

data VteChar Source

A structure describing the individual characters in the visible part of a terminal window.

Constructors

VteChar 

Enums

data TerminalEraseBinding Source

Values for what should happen when the user presses backspace/delete. Use EraseAuto unless the user can cause them to be overridden.

Constructors

terminalNew :: IO TerminalSource

Create a new terminal widget.

Methods

terminalImAppendMenuitemsSource

Arguments

:: TerminalClass self 
=> self 
-> MenuShell

menushell - a menu shell of MenuShell

-> IO () 

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.

terminalForkCommandSource

Arguments

:: TerminalClass self 
=> self 
-> Maybe String

command - the name of a binary to run, or Nothing to get user's shell

-> Maybe [String]

argv - the argument list to be passed to command, or Nothing

-> Maybe [String]

envv - a list of environment variables to be added to the environment before starting command, or Nothing

-> Maybe String

directory - the name of a directory the command should start in, or Nothing

-> Bool

lastlog - True if the session should be logged to the lastlog

-> Bool

utmp - True if the session should be logged to the utmp/utmpx log

-> Bool

wtmp - True if the session should be logged to the wtmp/wtmpx log

-> IO Int

return the ID of the new process

Starts the specified command under a newly-allocated controlling pseudo-terminal.

terminalForkptySource

Arguments

:: TerminalClass self 
=> self 
-> Maybe [String]

envv - a list of environment variables to be added to the environment before starting returning in the child process, or Nothing

-> Maybe String

directory - the name of a directory the child process should change to, or Nothing

-> Bool

lastlog - True if the session should be logged to the lastlog

-> Bool

utmp - True if the session should be logged to the utmp/utmpx log

-> Bool

wtmp - True if the session should be logged to the wtmp/wtmpx log

-> IO Int

return the ID of the new process in the parent, 0 in the child, and -1 if there was an error

Starts a new child process under a newly-allocated controlling pseudo-terminal.

  • Available since Vte version 0.11.11

terminalSetPtySource

Arguments

:: TerminalClass self 
=> self 
-> Int

ptyMaster - a file descriptor of the master end of a PTY

-> IO () 

Attach an existing PTY master side to the terminal widget. Use instead of terminalForkCommand or terminalForkpty.

  • Available since Vte version 0.12.1

terminalGetPtySource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the file descriptor, or -1 if the terminal has no PTY.

Returns the file descriptor of the master end of terminal's PTY.

  • Available since Vte version 0.19.1

terminalFeedSource

Arguments

:: TerminalClass self 
=> self 
-> String

string - a string in the terminal's current encoding

-> IO () 

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.

terminalFeedChildSource

Arguments

:: TerminalClass self 
=> self 
-> String

string - data to send to the child

-> IO () 

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

terminalFeedChildBinarySource

Arguments

:: TerminalClass self 
=> self 
-> [Word8]

data - data to send to the child

-> IO () 

Sends a block of binary data to the child.

  • Available since Vte version 0.12.1

terminalGetChildExitStatusSource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the child's exit status

Gets the exit status of the command started by terminalForkCommand.

  • Available since Vte version 0.19.1

terminalSelectAll :: TerminalClass self => self -> IO ()Source

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

  • Available since Vte version 0.16

terminalSelectNone :: TerminalClass self => self -> IO ()Source

Clears the current selection.

  • Available since Vte version 0.16

terminalCopyClipboard :: TerminalClass self => self -> IO ()Source

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

terminalPasteClipboard :: TerminalClass self => self -> IO ()Source

Sends the contents of the selectionClipboard 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.

terminalCopyPrimary :: TerminalClass self => self -> IO ()Source

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

terminalPastePrimary :: TerminalClass self => self -> IO ()Source

Sends the contents of the selectionPrimary 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 SelectionPrimary selection when the user clicks with the the second mouse button.

terminalSetSizeSource

Arguments

:: TerminalClass self 
=> self 
-> Int

columns - the desired number of columns

-> Int

rows - the desired number of rows

-> IO () 

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.

terminalSetAudibleBellSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

isAudible - True if the terminal should beep

-> IO () 

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

terminalGetAudibleBellSource

Arguments

:: TerminalClass self 
=> self 
-> IO Bool

return True if audible bell is enabled, False if not

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

terminalSetVisibleBellSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

isVisible - True if the terminal should flash

-> IO () 

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.

terminalGetVisibleBellSource

Arguments

:: TerminalClass self 
=> self 
-> IO Bool

return True if visible bell is enabled, False if not

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.

terminalSetAllowBoldSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

allowBold - True if the terminal should attempt to draw bold text

-> IO () 

Controls whether or not the terminal will attempt to draw bold text, either by using a bold font variant or by repainting text with a different offset.

terminalGetAllowBoldSource

Arguments

:: TerminalClass self 
=> self 
-> IO Bool

return True if bolding is enabled, False if not

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

terminalSetScrollOnOutputSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

scroll - True if the terminal should scroll on output

-> IO () 

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.

terminalSetScrollOnKeystrokeSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

scroll - True if the terminal should scroll on keystrokes

-> IO () 

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.

terminalSetColorBoldSource

Arguments

:: TerminalClass self 
=> self 
-> Color

bold - the new bold color

-> IO () 

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

terminalSetColorForegroundSource

Arguments

:: TerminalClass self 
=> self 
-> Color

foreground - the new foreground color

-> IO () 

Sets the foreground color used to draw normal text

terminalSetColorBackgroundSource

Arguments

:: TerminalClass self 
=> self 
-> Color

background - the new background color

-> IO () 

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.

terminalSetColorDimSource

Arguments

:: TerminalClass self 
=> self 
-> Color

dim - the nw dim color

-> IO () 

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

terminalSetColorCursorSource

Arguments

:: TerminalClass self 
=> self 
-> Color

cursor - the new color to use for the text cursor

-> IO () 

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

  • Available since Vte version 0.11.11

terminalSetColorHighlightSource

Arguments

:: TerminalClass self 
=> self 
-> Color

highlight - the new color to use for highlighted text

-> IO () 

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

  • Available since Vte version 0.11.11

terminalSetColorsSource

Arguments

:: TerminalClass self 
=> self 
-> Color

foreground - the new foreground color, or Nothing

-> Color

background - the new background color, or Nothing

-> Color

palette - the color palette

-> Int

size - the number of entries in palette

-> IO () 

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 Nothing and palette_size is greater than 0, the new foreground color is taken from palette[7]. If background is Nothing 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.

terminalSetDefaultColors :: TerminalClass self => self -> IO ()Source

Reset the terminal palette to reasonable compiled-in defaults.

terminalSetOpacitySource

Arguments

:: TerminalClass self 
=> self 
-> Int

opacity - the new opacity

-> IO () 

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

terminalSetBackgroundImageSource

Arguments

:: TerminalClass self 
=> self 
-> Maybe Pixbuf

image - a Pixbuf to use, or Nothing to use the default background

-> IO () 

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 terminalSetBackgroundSaturation the terminal will tint its in-memory copy of the image before applying it to the terminal.

terminalSetBackgroundImageFileSource

Arguments

:: TerminalClass self 
=> self 
-> String

path - path to an image file

-> IO () 

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

terminalSetBackgroundSaturationSource

Arguments

:: TerminalClass self 
=> self 
-> Double

saturation - a floating point value between 0.0 and 1.0.

-> IO () 

If a background image has been set using terminalSetBackgroundImage, terminalSetBackgroundImageFile, or terminalSetBackgroundTransparent, 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.

terminalSetBackgroundTransparentSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

transparent - True if the terminal should fake transparency

-> IO () 

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.

terminalSetBackgroundTintColorSource

Arguments

:: TerminalClass self 
=> self 
-> Color

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

-> IO () 

If a background image has been set using terminalSetBackgroundImage, terminalSetBackgroundImageFile, or terminalSetBackgroundTransparent, and the value set by terminalSetBackgroundSaturation 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.

  • Available since Vte version 0.11

terminalSetScrollBackgroundSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

scroll - True if the terminal should scroll the background image along with text.

-> IO () 

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

  • Available since Vte version 0.11

terminalSetCursorShapeSource

Arguments

:: TerminalClass self 
=> self 
-> TerminalCursorShape

shape - the TerminalCursorShape to use

-> IO () 

Sets the shape of the cursor drawn.

  • Available since Vte version 0.19.1

terminalGetCursorShapeSource

Arguments

:: TerminalClass self 
=> self 
-> IO TerminalCursorShape

return cursor shape

Returns the currently set cursor shape.

  • Available since Vte version 0.17.6

terminalSetCursorBlinkModeSource

Arguments

:: TerminalClass self 
=> self 
-> TerminalCursorBlinkMode

mode - the TerminalCursorBlinkMode to use

-> IO () 

Sets whether or not the cursor will blink.

  • Available since Vte version 0.17.1

terminalGetCursorBlinkModeSource

Arguments

:: TerminalClass self 
=> self 
-> IO TerminalCursorBlinkMode

return cursor blink mode.

Returns the currently set cursor blink mode.

  • Available since Vte version 0.17.1

terminalSetScrollbackLinesSource

Arguments

:: TerminalClass self 
=> self 
-> Int

lines - the length of the history buffer

-> IO () 

Sets 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.

terminalSetFontSource

Arguments

:: TerminalClass self 
=> self 
-> FontDescription

fontDesc - the FontDescription of the desired font.

-> IO () 

Sets the font used for rendering all text displayed by the terminal, overriding any fonts set using widgetModifyFont. 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.

terminalSetFontFromStringSource

Arguments

:: TerminalClass self 
=> self 
-> String

name - a string describing the font.

-> IO () 

A convenience function which converts name into a FontDescription and passes it to terminalSetFont.

terminalGetFontSource

Arguments

:: TerminalClass self 
=> self 
-> IO FontDescription

return a FontDescription describing the font the terminal is currently using to render text.

Queries the terminal for information about the fonts which will be used to draw text in the terminal.

terminalGetHasSelectionSource

Arguments

:: TerminalClass self 
=> self 
-> IO Bool

return True if part of the text in the terminal is selected.

Checks if the terminal currently contains selected text. Note that this is different from determining if the terminal is the owner of any GtkClipboard items.

terminalSetWordCharsSource

Arguments

:: TerminalClass self 
=> self 
-> String

spec - a specification

-> IO () 

When the user double-clicks to start selection, the terminal will extend the selection on word boundaries. It will treat characters included in spec as parts of words, and all other characters as word separators. Ranges of characters can be specified by separating them with a hyphen. As a special case, if spec is the empty string, the terminal will treat all graphic non-punctuation non-space characters as word characters.

terminalIsWordCharSource

Arguments

:: TerminalClass self 
=> self 
-> Char

c - a candidate Unicode code point

-> IO Bool

return True if the character is considered to be part of a word

Checks if a particular character is considered to be part of a word or not, based on the values last passed to terminalSetWordChars.

terminalSetBackspaceBindingSource

Arguments

:: TerminalClass self 
=> self 
-> TerminalEraseBinding

binding - a TerminalEraseBinding for the backspace key

-> IO () 

Modifies the terminal's backspace key binding, which controls what string or control sequence the terminal sends to its child when the user presses the backspace key.

terminalSetDeleteBindingSource

Arguments

:: TerminalClass self 
=> self 
-> TerminalEraseBinding

bindign - a TerminalEraseBinding for the delete key

-> IO () 

Modifies the terminal's delete key binding, which controls what string or control sequence the terminal sends to its child when the user presses the delete key.

terminalSetMouseAutohideSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

autohide - True if the autohide should be enabled

-> IO () 

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 terminalGetMouseAutohide.

terminalGetMouseAutohide :: TerminalClass self => self -> IO BoolSource

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 terminalSetMouseAutohide.

terminalResetSource

Arguments

:: TerminalClass self 
=> self 
-> Bool

full - True to reset tabstops

-> Bool

clearHistory - True to empty the terminal's scrollback buffer

-> IO () 

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.

terminalGetTextSource

Arguments

:: TerminalClass self 
=> self 
-> Maybe VteSelect

Just p for a predicate p that determines which character should be extracted or Nothing to select all characters

-> IO [VteChar]

return a text string

Extracts a view of the visible part of the terminal. A selection predicate may be supplied to restrict the inspected characters. The return value is a list of VteChar structures, each detailing the character's position, colors, and other characteristics.

terminalGetTextIncludeTrailingSpacesSource

Arguments

:: TerminalClass self 
=> self 
-> Maybe VteSelect

Just p for a predicate p that determines which character should be extracted or Nothing to select all characters

-> IO [VteChar]

return a text string

Extracts a view of the visible part of the terminal. If is_selected is not Nothing, characters will only be read if is_selected returns True after being passed the column and row, respectively. A CharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics. This function differs from terminalGetText in that trailing spaces at the end of lines are included.

  • Available since Vte version 0.11.11

terminalGetTextRangeSource

Arguments

:: TerminalClass self 
=> self 
-> Int

sRow first row to search for data

-> Int

sCol first column to search for data

-> Int

eRow last row to search for data

-> Int

eCol last column to search for data

-> Maybe VteSelect

Just p for a predicate p that determines which character should be extracted or Nothing to select all characters

-> IO [VteChar]

return a text string

Extracts a view of the visible part of the terminal. If is_selected is not Nothing, characters will only be read if is_selected returns True after being passed the column and row, respectively. A CharAttributes structure is added to attributes for each byte added to the returned string detailing the character's position, colors, and other characteristics. The entire scrollback buffer is scanned, so it is possible to read the entire contents of the buffer using this function.

terminalGetCursorPositionSource

Arguments

:: TerminalClass self 
=> self 
-> IO (Int, Int)

(column,row) the position of the cursor

Reads the location of the insertion cursor and returns it. The row coordinate is absolute.

terminalMatchClearAll :: TerminalClass self => self -> IO ()Source

Clears the list of regular expressions the terminal uses to highlight text when the user moves the mouse cursor.

terminalMatchAddRegexSource

Arguments

:: TerminalClass self 
=> self 
-> String

pattern - a regular expression

-> [RegexCompileFlags]

flags - specify how to interpret the pattern

-> [RegexMatchFlags]

flags - specify how to match

-> IO Int

return an integer associated with this expression

Adds the regular expression 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.

See <http: details about the accepted syntex.

  • Available since Vte version 0.17.1

terminalMatchRemoveSource

Arguments

:: TerminalClass self 
=> self 
-> Int

tag - the tag of the regex to remove

-> IO () 

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.

terminalMatchCheckSource

Arguments

:: TerminalClass self 
=> self 
-> Int

column - the text column

-> Int

row - the text row

-> IO (Maybe (String, Int))

Just (str, tag) - the string that matched one of the previously set regular expressions together with the number tag that was returned by terminalMatchAddRegex

Checks if the text in and around the specified position matches any of the regular expressions previously registered using terminalMatchAddRegex. If a match exists, the matching string is returned together with the number associated with the matched regular expression. If more than one regular expression matches, the expressions that was registered first will be returned.

terminalMatchSetCursorSource

Arguments

:: TerminalClass self 
=> self 
-> Int

tag - the tag of the regex which should use the specified cursor

-> Cursor

cursor - the Cursor which the terminal should use when the pattern is highlighted

-> IO () 

Sets which cursor the terminal will use if the pointer is over the pattern specified by tag. The terminal keeps a reference to cursor.

  • Available since Vte version 0.11

terminalMatchSetCursorTypeSource

Arguments

:: TerminalClass self 
=> self 
-> Int

tag the tag of the regex which should use the specified cursor

-> CursorType

cursorType a CursorType

-> IO () 

Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.

  • Available since Vte version 0.11.9

terminalMatchSetCursorNameSource

Arguments

:: TerminalClass self 
=> self 
-> Int

tag - the tag of the regex which should use the specified cursor

-> String

name - the name of the cursor

-> IO () 

Sets which cursor the terminal will use if the pointer is over the pattern specified by tag.

  • Available since Vte version 0.17.1

terminalSetEmulationSource

Arguments

:: TerminalClass self 
=> self 
-> String

emulation - the name of a terminal description

-> IO () 

Sets what type of terminal the widget attempts to emulate by scanning for control sequences defined in the system's termcap file. Unless you are interested in this feature, always use xterm.

terminalGetEmulationSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

return the name of the terminal type the widget is attempting to emulate

Queries the terminal for its current emulation, as last set by a call to terminalSetEmulation.

terminalGetDefaultEmulationSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

return the name of the default terminal type the widget attempts to emulate

Queries the terminal for its default emulation, which is attempted if the terminal type passed to terminalSetEmulation emptry string.

  • Available since Vte version 0.11.11

terminalSetEncodingSource

Arguments

:: TerminalClass self 
=> self 
-> String

codeset - a valid g_iconv target

-> IO () 

Changes 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 encoding is defined by the application's locale settings.

terminalGetEncodingSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

return the current encoding for the terminal.

Determines the name of the encoding in which the terminal expects data to be encoded.

terminalGetStatusLineSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

The current content of the terminal's status line. For terminals like xterm, this will usually be the empty string.

Some terminal emulations specify a status line which is separate from the main display area, and define a means for applications to move the cursor to the status line and back.

terminalGetPaddingSource

Arguments

:: TerminalClass self 
=> self 
-> IO (Int, Int)

(lr,tb) - the left/right-edge and top/bottom-edge padding

Determines the amount of additional space the widget is using to pad the edges of its visible area. This is necessary for cases where characters in the selected font don't themselves include a padding area and the text itself would otherwise be contiguous with the window border. Applications which use the widget's row_count, column_count, char_height, and char_width fields to set geometry hints using windowSetGeometryHints will need to add this value to the base size. The values returned in xpad and ypad are the total padding used in each direction, and do not need to be doubled.

terminalGetAdjustmentSource

Arguments

:: TerminalClass self 
=> self 
-> IO Adjustment

return the contents of terminal's adjustment field

Get Adjustment of terminal widget.

terminalGetCharHeightSource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the contents of terminal's char_height field

Get terminal's char height.

terminalGetCharWidthSource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the contents of terminal's char_width field

Get terminal's char width.

terminalGetColumnCountSource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the contents of terminal's column_count field

Get terminal's column count.

terminalGetRowCountSource

Arguments

:: TerminalClass self 
=> self 
-> IO Int

return the contents of terminal's row_count field

Get terminal's row count.

terminalGetIconTitleSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

return the contents of terminal's icon_title field

Get icon title.

terminalGetWindowTitleSource

Arguments

:: TerminalClass self 
=> self 
-> IO String

return the contents of terminal's window_title field

Get window title.

Attributes

terminalAllowBold :: TerminalClass self => Attr self BoolSource

Controls whether or not the terminal will attempt to draw bold text. This may happen either by using a bold font variant, or by repainting text with a different offset.

Default value: True

  • Available since Vte version 0.19.1

terminalAudibleBell :: TerminalClass self => Attr self BoolSource

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

Default value: True

  • Available since Vte version 0.19.1

terminalBackgroundImageFile :: TerminalClass self => Attr self StringSource

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

Default value: ""

  • Available since Vte version 0.19.1

terminalBackgroundImagePixbuf :: TerminalClass self => Attr self (Maybe Pixbuf)Source

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 background-saturation:, the terminal will tint its in-memory copy of the image before applying it to the terminal.

  • Available since Vte version 0.19.1

terminalBackgroundOpacity :: TerminalClass self => Attr self DoubleSource

Sets the opacity of the terminal background, were 0.0 means completely transparent and 1.0 means completely opaque.

Allowed values: [0,1]

Default values: 1

  • Available since Vte version 0.19.1

terminalBackgroundSaturation :: TerminalClass self => Attr self DoubleSource

If a background image has been set using background-image-file: or background-image-pixbuf:, or 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.

Allowed values: [0,1]

Default value: 0.4

  • Available since Vte version 0.19.1

terminalBackgroundTintColor :: TerminalClass self => Attr self ColorSource

If a background image has been set using background-image-file: or background-image-pixbuf:, or background-transparent:, and the value set by Terminal background-saturation: is less than 1.0, 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.

  • Available since Vte version 0.19.1

terminalBackgroundTransparent :: TerminalClass self => Attr self BoolSource

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

NOTE: When using a compositing window manager, you should instead set a RGBA colourmap on the toplevel window, so you get real transparency.

Default value: False

  • Available since Vte version 0.19.1

terminalBackspaceBinding :: TerminalClass self => Attr self TerminalEraseBindingSource

  • Controls what string or control sequence the terminal sends to its child when the user presses the backspace key.

Default value: EraseAuto

  • Available since Vte version 0.19.1

terminalCursorBlinkMode :: TerminalClass self => Attr self TerminalCursorBlinkModeSource

Sets whether or not the cursor will blink. Using CursorBlinkSystem will use the gtk-cursor-blink setting.

Default value: CursorBlinkSystem

  • Available since Vte version 0.19.1

terminalCursorShape :: TerminalClass self => Attr self TerminalCursorShapeSource

Controls the shape of the cursor.

Default value: CursorShapeBlock

  • Available since Vte version 0.19.1

terminalDeleteBinding :: TerminalClass self => Attr self TerminalEraseBindingSource

Controls what string or control sequence the terminal sends to its child when the user presses the delete key.

Default value: EraseAuto

  • Available since Vte version 0.19.1

terminalEmulation :: TerminalClass self => Attr self StringSource

Sets what type of terminal the widget attempts to emulate by scanning for control sequences defined in the system's termcap file. Unless you are interested in this feature, always use the default which is xterm.

Default value: xterm

  • Available since Vte version 0.19.1

terminalEncoding :: TerminalClass self => Attr self StringSource

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.

Default value: ""

  • Available since Vte version 0.19.1

terminalFontDesc :: TerminalClass self => Attr self FontDescriptionSource

Specifies the font used for rendering all text displayed by the terminal, overriding any fonts set using widgetModifyFont. 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.

  • Available since Vte version 0.19.1

terminalIconTitle :: TerminalClass self => ReadAttr self StringSource

The terminal's so-called icon title, or empty if no icon title has been set.

Default value: ""

  • Available since Vte version 0.19.1

terminalPointerAutohide :: TerminalClass self => Attr self BoolSource

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.

Default value: False

  • Available since Vte version 0.19.1

terminalPty :: TerminalClass self => Attr self IntSource

The file descriptor of the master end of the terminal's PTY.

Allowed values: [-1 ...]

Default values: -1

  • Available since Vte version 0.19.1

terminalScrollBackground :: TerminalClass self => Attr self BoolSource

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.

Default value: False

  • Available since Vte version 0.19.1

terminalScrollOnKeystroke :: TerminalClass self => Attr self BoolSource

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.

Default value: False

  • Available since Vte version 0.19.1

terminalScrollOnOutput :: TerminalClass self => Attr self BoolSource

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.

Default value: True

  • Available since Vte version 0.19.1

terminalScrollbackLines :: TerminalClass self => Attr self IntSource

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.

Default value: 100

  • Available since Vte version 0.19.1

terminalVisibleBell :: TerminalClass self => Attr self BoolSource

Controls whether 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.

Default value: False

  • Available since Vte version 0.19.1

terminalWindowTitle :: TerminalClass self => ReadAttr self StringSource

The terminal's title.

Default value: ""

  • Available since Vte version 0.19.1

terminalWordChars :: TerminalClass self => Attr self StringSource

When the user double-clicks to start selection, the terminal will extend the selection on word boundaries. It will treat characters the word-chars characters as parts of words, and all other characters as word separators. Ranges of characters can be specified by separating them with a hyphen. As a special case, when setting this to the empty string, the terminal will treat all graphic non-punctuation non-space characters as word characters.

Defalut value: ""

  • Available since Vte version 0.19.1

Signals

beep :: TerminalClass self => Signal self (IO ())Source

This signal is emitted when the a child sends a beep request to the terminal.

charSizeChanged :: TerminalClass self => Signal self (Int -> Int -> IO ())Source

Emitted whenever selection of a new font causes the values of the char_width or char_height fields to change.

childExited :: TerminalClass self => Signal self (IO ())Source

This signal is emitted when the terminal detects that a child started using terminalForkCommand has exited.

commit :: TerminalClass self => Signal self (String -> Int -> IO ())Source

Emitted whenever the terminal receives input from the user and prepares to send it to the child process. The signal is emitted even when there is no child process.

contentsChanged :: TerminalClass self => Signal self (IO ())Source

Emitted whenever the visible appearance of the terminal has changed. Used primarily by TerminalAccessible.

copyClipboard :: TerminalClass self => Signal self (IO ())Source

Emitted whenever terminalCopyClipboard is called.

cursorMoved :: TerminalClass self => Signal self (IO ())Source

Emitted whenever the cursor moves to a new character cell. Used primarily by TerminalAccessible.

decreaseFontSize :: TerminalClass self => Signal self (IO ())Source

Emitted when the user hits the - key while holding the Control key.

deiconifyWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

emulationChanged :: TerminalClass self => Signal self (IO ())Source

Emitted whenever the terminal's emulation changes, only possible at the parent application's request.

encodingChanged :: TerminalClass self => Signal self (IO ())Source

Emitted whenever the terminal's current encoding has changed, either as a result of receiving a control sequence which toggled between the local and UTF-8 encodings, or at the parent application's request.

eof :: TerminalClass self => Signal self (IO ())Source

Emitted when the terminal receives an end-of-file from a child which is running in the terminal. This signal is frequently (but not always) emitted with a childExited signal.

iconTitleChanged :: TerminalClass self => Signal self (IO ())Source

Emitted when the terminal's icon_title field is modified.

iconifyWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

increaseFontSize :: TerminalClass self => Signal self (IO ())Source

Emitted when the user hits the + key while holding the Control key.

lowerWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

maximizeWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

moveWindow :: TerminalClass self => Signal self (Word -> Word -> IO ())Source

Emitted when user move terminal window.

pasteClipboard :: TerminalClass self => Signal self (IO ())Source

Emitted whenever terminalPasteClipboard is called.

raiseWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

refreshWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

resizeWidnow :: TerminalClass self => Signal self (Int -> Int -> IO ())Source

Emitted at the child application's request.

restoreWindow :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

selectionChanged :: TerminalClass self => Signal self (IO ())Source

Emitted at the child application's request.

setScrollAdjustments :: TerminalClass self => Signal self (Adjustment -> Adjustment -> IO ())Source

Set the scroll adjustments for the terminal. Usually scrolled containers like ScrolledWindow will emit this signal to connect two instances of Scrollbar to the scroll directions of the Terminal.

statusLineChanged :: TerminalClass self => Signal self (IO ())Source

Emitted whenever the contents of the status line are modified or cleared.

textDeleted :: TerminalClass self => Signal self (IO ())Source

An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.

textInserted :: TerminalClass self => Signal self (IO ())Source

An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.

textModified :: TerminalClass self => Signal self (IO ())Source

An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.

textScrolled :: TerminalClass self => Signal self (Int -> IO ())Source

An internal signal used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.

windowTitleChanged :: TerminalClass self => Signal self (IO ())Source

Emitted when the terminal's window_title field is modified.