Commit c3051741 authored by Sergio Costas's avatar Sergio Costas

Added "cursor shape", "allow bold", "terminal bell" and "rewrap on resize" options

Allows to configure the shell to use inside the terminal
parent 9012f7df
......@@ -3,6 +3,8 @@
* Added full palette support
* Added all palette styles from gnome-terminal
* Added Solarized palette
* Allows to set the preferred shell
* Allows to configure more details (cursor shape, using bolds, rewrap on resize, and terminal bell)
* Version 0.6.0 (2016-12-17)
* Added a Gnome Shell extension, to allow to use the quake-terminal mode under Wayland with Gnome Shell
* Fixed the top bar (sometimes it didn't show the focus)
......
......@@ -71,10 +71,11 @@ depending where you installed the binaries) to have it globally available, or at
The format is very simple. Here is an example that defines a foreground/background
color scheme:
name: Orange on black
name[es]: Naranja sobre negro
text_fg: #FECE12
text_bg: #000000
name: Orange on black
name[es]: Naranja sobre negro
text_fg: #FECE12
text_bg: #000000
This file will define the *Orange on black* color scheme, that specifies that the
foreground will be orange, and the background will be black. It also specifies the name
......@@ -82,23 +83,23 @@ translated into spanish.
Another example, this time for a palette scheme:
name: Solarized
palette: #002b36
palette: #073642
palette: #586e75
palette: #657b83
palette: #839496
palette: #93a1a1
palette: #eee8d5
palette: #fdf6e3
palette: #b58900
palette: #cb4b16
palette: #dc322f
palette: #d33682
palette: #6c71c4
palette: #268bd2
palette: #2aa198
palette: #859900
name: Solarized
palette: #002b36
palette: #073642
palette: #586e75
palette: #657b83
palette: #839496
palette: #93a1a1
palette: #eee8d5
palette: #fdf6e3
palette: #b58900
palette: #cb4b16
palette: #dc322f
palette: #d33682
palette: #6c71c4
palette: #268bd2
palette: #2aa198
palette: #859900
This one defines the *Solarized* palette, with all its 16 colors. Each *palette*
entry defines one color, and they will be inserted in that precise order. There
......@@ -115,13 +116,13 @@ itself, but not the foreground/background colors.
## FAQ ##
*Q:* I use Gnome-Shell and when I show the Quake terminal, it doesn't get the focus.
*A:* It seems that installing the "Steal my focus" extension fix it. It can be found at
**Q:** I use Gnome-Shell and when I show the Quake terminal, it doesn't get the focus.
**A:** It seems that installing the "Steal my focus" extension fix it. It can be found at
https://extensions.gnome.org/extension/234/steal-my-focus/
*Q:* I'm using Wayland, and pressing Alt+F12 (or my keybinding) doesn't show the Quake-like
terminal.
*A:* That's because Wayland doesn't allow to an application to set its own keybindings.
**Q:** I'm using Wayland, and pressing Alt+F12 (or my keybinding) doesn't show the Quake-like
terminal.
**A:** That's because Wayland doesn't allow to an application to set its own keybindings.
Fortunately, Terminus includes a Gnome Shell extension that allows to show the Quake-like
terminal. If you have installed Terminus, just exit your session, enter again, and enable
the extension with gnome-tweak-tool.
......@@ -132,8 +133,8 @@ which makes use of the DBus remote control to show and hide the Quake-like termi
In Gnome Shell it is as easy as opening the Settings window, choose the "Keyboard" icon,
and add there the desired hotkey, associating it with "terminus_showhide.sh" program.
*Q:* I translated Terminus, but the color and palette schemes aren't translated. Why?
*A:* You have to also translate the ".color_scheme" files located at data/local.
**Q:** I translated Terminus, but the color and palette schemes aren't translated. Why?
**A:** You have to also translate the ".color_scheme" files located at data/local.
## Contacting the author ##
......
This diff is collapsed.
......@@ -11,11 +11,6 @@
<summary>Font used in terminals</summary>
<description></description>
</key>
<key type="i" name="color-scheme">
<default>1</default>
<summary>Color scheme used</summary>
<description></description>
</key>
<key type="s" name="fg-color">
<default>"#C0C0C0"</default>
<summary>Text color</summary>
......@@ -90,6 +85,26 @@
<default>"/bin/bash"</default>
<summary>Shell to use</summary>
<description></description>
</key>
<key type="i" name="cursor-shape">
<default>1</default>
<summary>Desired cursor shape</summary>
<description>0: block; 1: double T; 2: underscore</description>
</key>
<key type="b" name="terminal-bell">
<default>true</default>
<summary></summary>
<description></description>
</key>
<key type="b" name="allow-bold">
<default>true</default>
<summary>Whether the terminal will allow applications to show bold text</summary>
<description></description>
</key>
<key type="b" name="rewrap-on-resize">
<default>true</default>
<summary>Whether the terminal should rewrap the text when the window is resized</summary>
<description></description>
</key>
<!--<key type="" name="">
<default></default>
......
This diff is collapsed.
......@@ -222,6 +222,10 @@ namespace Terminus {
settings_changed("color-palete");
settings_changed("fg-color");
settings_changed("bg-color");
settings_changed("cursor-shape");
settings_changed("terminal-bell");
settings_changed("allow-bold");
settings_changed("rewrap-on-resize");
// These aren't needed because are refreshed with "color-palete"
/*settings_changed("bold-color");
settings_changed("highlight-fg-color");
......@@ -293,6 +297,25 @@ namespace Terminus {
}
this.vte_terminal.scrollback_lines = lines;
break;
case "cursor-shape":
var v = Terminus.settings.get_int("cursor-shape");
if (v == 0) {
this.vte_terminal.cursor_shape = Vte.CursorShape.BLOCK;
} else if (v == 1) {
this.vte_terminal.cursor_shape = Vte.CursorShape.IBEAM;
} else if (v == 2) {
this.vte_terminal.cursor_shape = Vte.CursorShape.UNDERLINE;
}
break;
case "terminal-bell":
this.vte_terminal.audible_bell = Terminus.settings.get_boolean(key);
break;
case "rewrap-on-resize":
this.vte_terminal.rewrap_on_resize = Terminus.settings.get_boolean(key);
break;
case "allow-bold":
this.vte_terminal.allow_bold = Terminus.settings.get_boolean(key);
break;
case "fg-color":
this.vte_terminal.set_color_foreground(color);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment