31 setMinimumSize(300, 200);
54 connect (file_filter, SIGNAL (request_edit_mfile_signal (
const QString&,
int)),
55 _parent, SLOT (edit_mfile (
const QString&,
int)));
56 connect (file_filter, SIGNAL (request_open_file_signal (
const QString&,
int)),
57 _parent, SLOT (open_file (
const QString&,
int)));
59 connect(
m_terminalView, SIGNAL(customContextMenuRequested(QPoint)),
66 QFont font = QFont(
"Monaco");
67 font.setStyleHint(QFont::TypeWriter);
68 font.setPointSize(11);
70 QFont font = QFont(
"Monospace");
71 font.setStyleHint(QFont::TypeWriter);
72 font.setPointSize(10);
75 setFocusPolicy (Qt::StrongFocus);
77 setFocus(Qt::OtherFocusReason);
118 dup2 (fds, STDOUT_FILENO);
119 dup2 (fds, STDERR_FILENO);
122 qDebug(
"Error: stdin is not a tty.");
125 if(!isatty(STDOUT_FILENO)) {
126 qDebug(
"Error: stdout is not a tty.");
129 if(!isatty(STDERR_FILENO)) {
130 qDebug(
"Error: stderr is not a tty.");
184 cols[
i] = curr_cols[
i];
199 cols[
i] = curr_cols[
i];
An entry in a terminal display's color palette.
void addView(TerminalView *widget)
Adds a new view for this session.
void setTerminalSizeStartup(bool on)
Sets whether the terminal size display is shown briefly after the widget is first shown...
int dup2(int old_fd, int new_fd)
void setScrollBarPosition(ScrollBarPosition position)
Specifies whether the terminal display has a vertical scroll bar, and if so whether it is shown on th...
void setSize(int h, int v)
Represents a terminal session consisting of a pseudo-teletype and a terminal emulation.
void setTerminalSizeHint(bool on)
Sets whether or not the current height and width of the terminal in lines and columns is displayed wh...
QList< QAction * > get_hotspot_actions(const QPoint &at)
void setKeyboardCursorShape(KeyboardCursorShape shape)
Sets the shape of the keyboard cursor.
void run()
Starts the terminal session.
void clearHistory()
Clears the history store used by this session.
virtual void handle_visibility_changed(bool visible)
#define DEFAULT_FORE_COLOR
void interrupt_signal(void)
void setColorTable(const ColorEntry table[])
Sets the terminal color palette used by the display.
void setCursorType(CursorType type, bool blinking)
void addFilter(Filter *filter)
Adds a new filter to the chain.
void visibility_changed(bool visible)
Is called, when the terminal's visibility has changed in order to stop orstart timers etc...
A filter which matches URLs in blocks of text.
void setKeyBindings(const QString &id)
Sets the key bindings used by this session.
Select the whole line underneath the cursor.
void terminal_interrupt(void)
FilterChain * filterChain() const
Returns the display's filter chain.
TerminalView * m_terminalView
void setSize(int cols, int lins)
bool open()
Create a pty master/slave pair.
QColor color
The color value of this entry for display.
void setHistoryType(const HistoryType &type)
Sets the type of history store used by this session.
QList< QAction * > filterActions(const QPoint &position)
Returns a list of menu actions created by the filters for the content at the given position...
Show the scroll bar on the right side of the display.
An cursor shaped like the capital letter 'I', similar to the IBeam cursor used in Qt/KDE text editors...
A rectangular block which covers the entire area of the cursor character.
const ColorEntry * colorTable() const
Returns the terminal color palette used by the display.
void selectAll()
selects all content
TerminalModel * m_terminalModel
void has_extra_interrupt(bool extra_interrupt)
virtual ~QUnixTerminalImpl()
OCTAVE_EXPORT octave_value_list at
void setBellMode(int mode)
Sets the type of effect used to alert the user when a 'bell' occurs in the terminal session...
void setCursorColor(bool useForegroundColor, const QColor &color)
void pasteClipboard()
Pastes the content of the clipboard into the display.
void setDarkBackground(bool darkBackground)
Sets whether the session has a dark background or not.
void setBlinkingCursor(bool blink)
Specifies whether or not the cursor blinks.
void setForegroundColor(const QColor &color)
void setTerminalFont(const QFont &font)
virtual void resizeEvent(QResizeEvent *)
void setKeyboardCursorColor(bool useForegroundColor, const QColor &color)
Sets the color used to draw the keyboard cursor.
void showEvent(QShowEvent *)
void setCodec(QTextCodec *codec)
Sets the text codec used by this session's terminal emulation.
void sendText(const QString &text)
void copyClipboard(bool extra_interrupt)
Copies the selected text to the clipboard.
void setAutoClose(bool b)
Specifies whether to close the session automatically when the terminal process terminates.
void setScrollBufferSize(int value)
void setBackgroundColor(const QColor &color)
A single flat line which occupies the space at the bottom of the cursor character's area...
A widget which displays output from a terminal emulation and sends input keypresses and mouse activit...
Provides primitives for opening & closing a pseudo TTY pair, assigning the controlling TTY...
void sendText(const QString &text) const
Sends text to the current foreground terminal program.
nd group nd example For each display the value
QUnixTerminalImpl(QWidget *parent=nullptr)
void setVTFont(const QFont &font)
Sets the font used to draw the display.
void setSelectionColor(const QColor &color)
virtual void handleCustomContextMenuRequested(const QPoint &at)
void updateImage()
Causes the terminal display to fetch the latest character image from the associated terminal screen (...
void setTripleClickMode(TripleClickMode mode)
Sets how the text is selected when the user triple clicks within the display.
#define DEFAULT_BACK_COLOR