gi-vte-2.91.12: Vte bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Vte.Objects.Pty

Contents

Description

 

Synopsis

Exported types

newtype Pty Source #

Constructors

Pty (ManagedPtr Pty) 

Instances

GObject Pty Source # 

Methods

gobjectType :: Pty -> IO GType #

IsInitable Pty Source # 
IsObject Pty Source # 
IsPty Pty Source # 
((~) * info (ResolvePtyMethod t Pty), MethodInfo * info Pty p) => IsLabel t (Pty -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Pty -> p #

((~) * info (ResolvePtyMethod t Pty), MethodInfo * info Pty p) => IsLabelProxy t (Pty -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Pty -> p #

HasAttributeList * Pty Source # 
type AttributeList Pty Source # 
type SignalList Pty Source # 

toPty :: IsPty o => o -> IO Pty Source #

Methods

childSetup

data PtyChildSetupMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsPty a) => MethodInfo * PtyChildSetupMethodInfo a signature Source # 

ptyChildSetup Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> m () 

FIXMEchpe

close

data PtyCloseMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsPty a) => MethodInfo * PtyCloseMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PtyCloseMethodInfo a -> signature -> s #

ptyClose Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> m () 

Deprecated: (Since version 0.42)

Since 0.42 this is a no-op.

getFd

data PtyGetFdMethodInfo Source #

Instances

((~) * signature (m Int32), MonadIO m, IsPty a) => MethodInfo * PtyGetFdMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PtyGetFdMethodInfo a -> signature -> s #

ptyGetFd Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> m Int32

Returns: the file descriptor of the PTY master in pty. The file descriptor belongs to pty and must not be closed

No description available in the introspection data.

getSize

data PtyGetSizeMethodInfo Source #

Instances

((~) * signature (m (Int32, Int32)), MonadIO m, IsPty a) => MethodInfo * PtyGetSizeMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PtyGetSizeMethodInfo a -> signature -> s #

ptyGetSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> m (Int32, Int32)

(Can throw GError)

Reads the pseudo terminal's window size.

If getting the window size failed, error will be set to a IOError.

newForeignSync

ptyNewForeignSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> Int32

fd: a file descriptor to the PTY

-> Maybe a

cancellable: a Cancellable, or Nothing

-> m Pty

Returns: a new Pty for fd, or Nothing on error with error filled in (Can throw GError)

Creates a new Pty for the PTY master fd.

No entry will be made in the lastlog, utmp or wtmp system files.

Note that the newly created Pty will take ownership of fd and close it on finalize.

newSync

ptyNewSync Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a) 
=> [PtyFlags]

flags: flags from PtyFlags

-> Maybe a

cancellable: a Cancellable, or Nothing

-> m Pty

Returns: a new Pty, or Nothing on error with error filled in (Can throw GError)

Allocates a new pseudo-terminal.

You can later use fork() or the spawnAsync family of functions to start a process on the PTY.

If using fork(), you MUST call ptyChildSetup in the child.

If using spawnAsync and friends, you MUST either use ptyChildSetup directly as the child setup function, or call ptyChildSetup from your own child setup function supplied.

When using terminalSpawnSync with a custom child setup function, ptyChildSetup will be called before the supplied function; you must not call it again.

Also, you MUST pass the SpawnFlagsDoNotReapChild flag.

setSize

data PtySetSizeMethodInfo Source #

Instances

((~) * signature (Int32 -> Int32 -> m ()), MonadIO m, IsPty a) => MethodInfo * PtySetSizeMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PtySetSizeMethodInfo a -> signature -> s #

ptySetSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> Int32

rows: the desired number of rows

-> Int32

columns: the desired number of columns

-> m ()

(Can throw GError)

Attempts to resize the pseudo terminal's window size. If successful, the OS kernel will send SIGWINCH to the child process group.

If setting the window size failed, error will be set to a IOError.

setUtf8

data PtySetUtf8MethodInfo Source #

Instances

((~) * signature (Bool -> m ()), MonadIO m, IsPty a) => MethodInfo * PtySetUtf8MethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PtySetUtf8MethodInfo a -> signature -> s #

ptySetUtf8 Source #

Arguments

:: (HasCallStack, MonadIO m, IsPty a) 
=> a

pty: a Pty

-> Bool

utf8: whether or not the pty is in UTF-8 mode

-> m ()

(Can throw GError)

Tells the kernel whether the terminal is UTF-8 or not, in case it can make use of the info. Linux 2.6.5 or so defines IUTF8 to make the line discipline do multibyte backspace correctly.

Properties

fd

data PtyFdPropertyInfo Source #

Instances

AttrInfo PtyFdPropertyInfo Source # 
type AttrOrigin PtyFdPropertyInfo Source # 
type AttrLabel PtyFdPropertyInfo Source # 
type AttrGetType PtyFdPropertyInfo Source # 
type AttrBaseTypeConstraint PtyFdPropertyInfo Source # 
type AttrSetTypeConstraint PtyFdPropertyInfo Source # 
type AttrAllowedOps PtyFdPropertyInfo Source # 

getPtyFd :: (MonadIO m, IsPty o) => o -> m Int32 Source #

flags

data PtyFlagsPropertyInfo Source #

Instances

AttrInfo PtyFlagsPropertyInfo Source # 
type AttrOrigin PtyFlagsPropertyInfo Source # 
type AttrLabel PtyFlagsPropertyInfo Source # 
type AttrGetType PtyFlagsPropertyInfo Source # 
type AttrBaseTypeConstraint PtyFlagsPropertyInfo Source # 
type AttrSetTypeConstraint PtyFlagsPropertyInfo Source # 
type AttrAllowedOps PtyFlagsPropertyInfo Source # 

getPtyFlags :: (MonadIO m, IsPty o) => o -> m [PtyFlags] Source #