terminal
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
terminal [2017/01/14 02:26] – admin | terminal [2018/12/28 23:10] – admin | ||
---|---|---|---|
Line 6: | Line 6: | ||
* xterm in the eighties - it was what we had and life was good | * xterm in the eighties - it was what we had and life was good | ||
- | |||
* rxvt in the nineties - it was lighter when it really counted | * rxvt in the nineties - it was lighter when it really counted | ||
- | |||
* urxvt/mrxvt in the noughties - it was cooler and I forget why else - it's prettier (no more bitmap fonts) | * urxvt/mrxvt in the noughties - it was cooler and I forget why else - it's prettier (no more bitmap fonts) | ||
- | |||
* konsole in the (what to call them?) teens - has tabs, menus, search, unlimited scrollback | * konsole in the (what to call them?) teens - has tabs, menus, search, unlimited scrollback | ||
Line 16: | Line 13: | ||
* it bloats, often taking up 10% of CPU while dormant | * it bloats, often taking up 10% of CPU while dormant | ||
- | |||
* it gives up focus when Alt is pressed - and my thumb can't resist the Alt key | * it gives up focus when Alt is pressed - and my thumb can't resist the Alt key | ||
- | |||
* it refuses to pass C-S-Left/ | * it refuses to pass C-S-Left/ | ||
Line 24: | Line 19: | ||
termit just sails past all of the problems with konsole (although the configuration took me a week to get just right). And sensibly, it can map C-Tab and C-S-Tab to next/prev tab - something gnome-terminal, | termit just sails past all of the problems with konsole (although the configuration took me a week to get just right). And sensibly, it can map C-Tab and C-S-Tab to next/prev tab - something gnome-terminal, | ||
- | |||
- | Here's my config (put it into ~/ | ||
- | |||
- | Enjoy! | ||
For the record I tried heaps including: | For the record I tried heaps including: | ||
Line 34: | Line 25: | ||
Also see this ancient 2004 article which really needs an update: | Also see this ancient 2004 article which really needs an update: | ||
The Grumpy Editor' | The Grumpy Editor' | ||
+ | |||
+ | Here's my config (put it into ~/ | ||
+ | |||
+ | function notify (url, msg) | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | function handle_url_simple_copy (url) | ||
+ | -- simply copies the url | ||
+ | -- requires package xclip | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute ("echo -n '" | ||
+ | -- notify (url, " | ||
+ | end | ||
+ | | ||
+ | function handle_url_simple_open (url) | ||
+ | -- simply opens the url | ||
+ | -- requires package xdg-utils | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute (" | ||
+ | notify (url, " | ||
+ | end | ||
+ | | ||
+ | function handle_url_zenity (url) | ||
+ | -- pops up a dialog to allow choice of copying or opening the url | ||
+ | -- requires package zenity and the termit-zenity-dialog script | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | function handle_url_lgi (url) | ||
+ | -- pops up a dialog to allow choice of copying or opening the url | ||
+ | -- also allows editing of the url before copying/ | ||
+ | -- requires package lua-lgi and the termit-lgi-dialog script | ||
+ | | ||
+ | local url = string.gsub(url," | ||
+ | os.execute(" | ||
+ | end | ||
+ | | ||
+ | defaults = {} | ||
+ | defaults.windowTitle = ' | ||
+ | defaults.tabName = ' | ||
+ | defaults.encoding = ' | ||
+ | defaults.wordChars = ' | ||
+ | defaults.scrollbackLines = 4096 | ||
+ | defaults.font = ' | ||
+ | defaults.geometry = ' | ||
+ | defaults.hideSingleTab = false | ||
+ | defaults.showScrollbar = true | ||
+ | defaults.fillTabbar = false | ||
+ | defaults.hideMenubar = true | ||
+ | defaults.allowChangingTitle = true | ||
+ | defaults.visibleBell = false | ||
+ | defaults.audibleBell = false | ||
+ | defaults.urgencyOnBell = false | ||
+ | defaults.matches = {[' | ||
+ | defaults.foregroundColor = ' | ||
+ | defaults.backgroundColor = ' | ||
+ | | ||
+ | setOptions(defaults) | ||
+ | | ||
+ | function get_primary() | ||
+ | -- os.execute (" | ||
+ | os.execute (" | ||
+ | end | ||
+ | | ||
+ | function changeTabFontSize(delta) | ||
+ | tab = tabs[currentTabIndex()] | ||
+ | setTabFont(string.sub(tab.font, | ||
+ | end | ||
+ | | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | bindKey(' | ||
+ | | ||
+ | setKbPolicy(' | ||
+ | | ||
terminal.txt · Last modified: 2020/10/14 18:05 by admin