summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--terminal-here.el14
1 files changed, 10 insertions, 4 deletions
diff --git a/terminal-here.el b/terminal-here.el
index 4aa9c86..53d8355 100644
--- a/terminal-here.el
+++ b/terminal-here.el
@@ -91,6 +91,11 @@ Typically this is -e, gnome-terminal uses -x."
:group 'terminal-here
:type 'symbol)
+(defcustom terminal-here-scrollbar t
+ "If nil disable scroll for a terminal."
+ :group 'terminal-here
+ :type 'boolean)
+
(defcustom terminal-here-multiplexers
'("screen" "tmux")
"List of terminal emulators."
@@ -126,10 +131,11 @@ If f attach to a `screen' session inside multiplexer."
(defun terminal-here-terminal-options ()
"Return options for a terminal."
(cond ((string-equal (car terminal-here-terminal-emulators) "xterm")
- (cond ((eq terminal-here-color 'light)
- '("-bg" "white" "-fg" "black"))
- ((eq terminal-here-color 'dark)
- '("-bg" "black" "-fg" "white"))))))
+ `(,@(cond ((eq terminal-here-color 'light)
+ '("-bg" "white" "-fg" "black"))
+ ((eq terminal-here-color 'dark)
+ '("-bg" "black" "-fg" "white")))
+ ,(if terminal-here-scrollbar "-sb" "+sb")))))
(defun terminal-here-multiplexer-session (dir)
"If new is t create a new multiplexer session called `dir'.