26 #ifndef TERMINALMODEL_H 27 #define TERMINALMODEL_H 30 #include <QtCore/QStringList> 329 void sendData(
const char* buf,
int len);
371 #endif // TERMINALMODEL_H QList< TerminalView * > views() const
Returns the views connected to this session.
void onViewSizeChange(int height, int width)
void stateChanged(int state)
Emitted when the activity state of this session changes.
void addView(TerminalView *widget)
Adds a new view for this session.
void resizeRequest(const QSize &size)
Emitted when the terminal process requests a change in the size of the terminal window.
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
void onReceiveBlock(const char *buffer, int len)
void viewDestroyed(QObject *view)
SelfListener * _selfListener
void run()
Starts the terminal session.
void titleChanged()
Emitted when the session's title has changed.
void clearHistory()
Clears the history store used by this session.
void profileChanged(const QString &profile)
Emitted when the session's profile has changed.
void receivedData(const QString &text)
Emitted when output is received from the terminal process.
void sendData(const char *buf, int len)
Base class for terminal emulation back-ends.
PseudoTerminal * _shellProcess
void setKeyBindings(const QString &id)
Sets the key bindings used by this session.
void bellRequest(const QString &message)
Emitted when a bell event occurs in the session.
void finished()
Emitted when the terminal process exits.
const HistoryType & historyType() const
Returns the type of history store used by this session.
void setHistoryType(const HistoryType &type)
Sets the type of history store used by this session.
QString keyBindings() const
Returns the name of the key bindings used by this session.
void onEmulationSizeChange(int lines, int columns)
void close()
Closes the terminal session.
void refresh()
Attempts to get the shell program to redraw the current display area.
void changeBackgroundColorRequest(const QColor &)
Requests that the background color of views on this session should be changed.
void message(const char *name, const char *fmt,...)
void updateTerminalSize()
QColor _modifiedBackground
Emulation * emulation() const
Returns the terminal emulation instance being used to encode / decode characters to / from the proces...
void profileChangeCommandReceived(const QString &text)
Emitted when a profile change command is received from the terminal.
QString profileKey() const
Returns the profile key associated with this session.
void removeView(TerminalView *widget)
Removes a view from this session.
bool hasDarkBackground() const
Returns true if the session has a dark background.
QList< TerminalView * > _views
void setSize(const QSize &size)
Emits a request to resize the session to accommodate the specified window size.
void started()
Emitted when the terminal process starts.
void setAddToUtmp(bool)
Specifies whether a utmp entry should be created for the pty used by this session.
void setDarkBackground(bool darkBackground)
Sets whether the session has a dark background or not.
void setMonitorSilence(bool)
Enables monitoring for silence in the session.
static uint32_t state[624]
void changeTabTextColorRequest(int)
Requests that the color the text for any tabs associated with this session should be changed;...
void setCodec(QTextCodec *codec)
Sets the text codec used by this session's terminal emulation.
void setMonitorSilenceSeconds(int seconds)
See setMonitorSilence()
bool isMonitorSilence() const
Returns true if monitoring for inactivity (silence) in the session is enabled.
void openUrlRequest(const QString &url)
TODO: Document me.
void setProfileKey(const QString &profileKey)
Sets the profile associated with this session.
void setAutoClose(bool b)
Specifies whether to close the session automatically when the terminal process terminates.
bool isMonitorActivity() const
Returns true if monitoring for activity is enabled.
void setMonitorActivity(bool)
Enables monitoring for activity in the session.
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
void activityStateSet(int)
Provides primitives for opening & closing a pseudo TTY pair, assigning the controlling TTY...
QSize size()
Returns the terminal session's window size in lines and columns.
void sendText(const QString &text) const
Sends text to the current foreground terminal program.