diff options
author | Ken Moore <moorekou@gmail.com> | 2016-04-26 10:35:15 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2016-04-26 10:35:15 -0400 |
commit | 54a9b9efaa2ca8834a4a72d99a05a4e981391124 (patch) | |
tree | 36d36a2c0f79b0cd4de040779cecb49312e48a35 /src-qt5/desktop-utils/lumina-terminal | |
parent | Merge branch 'master' of github.com:pcbsd/lumina (diff) | |
download | lumina-54a9b9efaa2ca8834a4a72d99a05a4e981391124.tar.gz lumina-54a9b9efaa2ca8834a4a72d99a05a4e981391124.tar.bz2 lumina-54a9b9efaa2ca8834a4a72d99a05a4e981391124.zip |
Some minor updates to lumina-terminal. Enable window transparency (75% opaque) for a nice effect.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-terminal')
-rw-r--r-- | src-qt5/desktop-utils/lumina-terminal/TermWindow.cpp | 4 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp | 2 | ||||
-rw-r--r-- | src-qt5/desktop-utils/lumina-terminal/TtyProcess.cpp | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-terminal/TermWindow.cpp b/src-qt5/desktop-utils/lumina-terminal/TermWindow.cpp index 82f71e6b..5ef31a5f 100644 --- a/src-qt5/desktop-utils/lumina-terminal/TermWindow.cpp +++ b/src-qt5/desktop-utils/lumina-terminal/TermWindow.cpp @@ -18,6 +18,8 @@ // PUBLIC // =============== TermWindow::TermWindow(QSettings *set) : QWidget(0, Qt::Window | Qt::BypassWindowManagerHint){//, ui(new Ui::TermWindow){ + this->setWindowOpacity(0.75); + //this->setStyleSheet( "QWidget{ background: transparent; }"); CLOSING = false; //internal flag settings = set; //Create the Window @@ -298,4 +300,4 @@ void TermWindow::mouseMoveEvent(QMouseEvent *ev){ this->setGeometry(geom); } settings->setValue("lastSize",this->geometry().size()); -}
\ No newline at end of file +} diff --git a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp index a90d9846..f596e9fe 100644 --- a/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp +++ b/src-qt5/desktop-utils/lumina-terminal/TerminalWidget.cpp @@ -18,10 +18,12 @@ TerminalWidget::TerminalWidget(QWidget *parent, QString dir) : QTextEdit(parent){ //Setup the text widget + this->setStyleSheet("background: black; color: white;"); this->setLineWrapMode(QTextEdit::WidgetWidth); this->setAcceptRichText(false); this->setOverwriteMode(true); this->setFocusPolicy(Qt::StrongFocus); + this->setTabStopWidth( 8 * this->fontMetrics().width(" ") ); //8 character spaces per tab (UNIX standard) this->setWordWrapMode(QTextOption::NoWrap); this->setContextMenuPolicy(Qt::CustomContextMenu); DEFFMT = this->textCursor().charFormat(); //save the default structure for later diff --git a/src-qt5/desktop-utils/lumina-terminal/TtyProcess.cpp b/src-qt5/desktop-utils/lumina-terminal/TtyProcess.cpp index c5844255..8d72e667 100644 --- a/src-qt5/desktop-utils/lumina-terminal/TtyProcess.cpp +++ b/src-qt5/desktop-utils/lumina-terminal/TtyProcess.cpp @@ -18,7 +18,7 @@ bool TTYProcess::startTTY(QString prog, QStringList args, QString workdir){ if(workdir=="~"){ workdir = QDir::homePath(); } QDir::setCurrent(workdir); QProcessEnvironment env = QProcessEnvironment::systemEnvironment(); - setenv("TERM","vt100",1); //VT100 emulation support + setenv("TERM","vt100",1); //vt100: VT100 emulation support unsetenv("TERMCAP"); /*setenv("TERMCAP","mvterm|vv100|mvterm emulator with ANSI colors:\ :pa#64:Co#8:AF=\E[3%dm:AB=\E[4%dm:op=\E[100m:tc=vt102:",1); //see /etc/termcap as well*/ |