Janosch Schwalm
19b925e741
use https everywhere ( #6574 )
...
* use https everywhere
* use https links on the files that are left
Also, removed some broken links and updated redirections.
8 years ago
moyamo
71deb74552
Fix indentation
10 years ago
moyamo
d779750341
Default to using terminfo to set the terminal title
...
Currently, the title is only set on supported terminals (i.e. xterm,
urxvt, screen etc.). Using terminfo entries to set the terminal title
adds support for many more terminals.
10 years ago
Marc Cornellà
4e306887c2
Cleanup update_terminalapp_cwd function
10 years ago
Marc Cornellà
eca912e51a
Quote all variables in if statements
10 years ago
Marc Cornellà
103eb32721
Use a case structure to id terminal types
10 years ago
Dawid Ferenczy
63d7500cf1
Added setting of the window title in Cygwin
10 years ago
Ionel Cristian Mărieș
d55111f200
Support all kinds of putty-like terminal strings.
10 years ago
Ionel Cristian Mărieș
711c1bcb40
Add support for "putty" $TERM in termsupport.zsh
10 years ago
Andrew Janke
f0981d564a
termsupport: protect subshell with quotes
10 years ago
Andrew Janke
47d19cc564
Add defensive `emulate -L zsh` to termsupport functions
11 years ago
Andrew Janke
14b4ba83c3
Move urlencode/urldecode functions to core lib
11 years ago
Andrew Janke
17da983442
termsupport: avoid repeated dir in window title in Terminal.app
11 years ago
Andrew Janke
90ea67edf0
termsupport: protect title() with `emulate -L zsh`
...
This prevents it from malfunctioning when `setopt prompt_subst` is off.
11 years ago
Andrew Janke
88f42b6132
Add support for variant "utf8" locale suffix spelling. Fix dumb bug in iconv call that would cause it to hang.
11 years ago
Andrew Janke
cb37c934c0
Remove unnecessary braces.
11 years ago
Andrew Janke
187cf07c91
For unspecified encodings, assume it's UTF-8 or compatible (e.g. ASCII) and muddle through without character encoding conversion.
11 years ago
Andrew Janke
702ff1ca91
Add support for non-UTF-8 encodings in caller's locale.
11 years ago
Andrew Janke
3a18c33f17
In termsupport, use LC_CTYPE instead of LANG to enable byte-by-byte text processing. LANG doesn't seem to actually work.
11 years ago
Andrew Janke
a9e97e5d2d
Remove terminalapp plugin and fold its implementation in to lib/termsupport.zsh. Replaces the redundant Terminal.app support that was recently added to termsupport.
11 years ago
Marc Cornellà
3704fbb71e
Extract CWD notifier back out of auto-title hooks
11 years ago
Marc Cornellà
2e41d06b76
Use quoted $TERM value everywhere
11 years ago
Marc Cornellà
b7e5dd35ef
Quick-fix code style
11 years ago
Andrew Janke
4fc6dccb42
term: Move DISABLE_AUTO_TITLE check to hooks
...
Move the DISABLE_AUTO_TITLE check from title() to the preX hook
functions that call it, to allow the title() function to be used
directly by user or other callers.
11 years ago
Andrew Janke
be7028012e
Reword comments on termsupport internal functions.
11 years ago
Andrew Janke
5f79ab5547
Move chpwd update output from chpwd hook to precmd to avoid
...
contaminating script/function output
11 years ago
Andrew Janke
7295e38885
termsupport: add chpwd hook for setting pwd in Apple Terminal.app
11 years ago
Jingwen Owen Ou
dc9e1764cf
Fix missing add-zsh-hook
...
In older version of zsh, `add-zsh-hook` is not available, causing issues like:
```
/Users/hugo/.oh-my-zsh/lib/termsupport.zsh:32: add-zsh-hook: function definition file not found
/Users/hugo/.oh-my-zsh/lib/termsupport.zsh:33: add-zsh-hook: function definition file not found
```
See https://github.com/robbyrussell/oh-my-zsh/issues/748 . This patch pulls in the changes suggested in https://github.com/robbyrussell/oh-my-zsh/issues/748#issuecomment-37862691 by @mcornella and I have tested it on RHEL 5.
12 years ago
Andrea De Pasquale
12324856c6
Added ssh-like mosh window title
...
Display the hostname when running Mosh (http://mosh.mit.edu/ ).
Same thing as displaying "hostname" when running "ssh hostname".
12 years ago
Marc Cornellà
5137e0e509
Escape % in $CMD variable
...
Fixes formatting on some rare cases when a percent ends up
in the $CMD variable, like these below:
- When assigning a variable, $CMD ends up with the second parameter;
in this case, $CMD will contain '+%s%N', messing with the syntax:
$ a=`date +%s%N`
- A function (or command in general) that contains a percent symbol:
$ to\%() { echo $(( $1 * 100 / $3))\% } # $CMD=to%()
$ to% 2 of 10 # $CMD=to%
12 years ago
Marc Cornellà
a951600b4e
Avoid 'title:parse error' with single quotes in $CMD
...
Fixes #2182
12 years ago
Marc Cornellà
3e5de21dc5
Revert previous commit, escape %
12 years ago
Marc Cornellà
b73ced397f
Use single quotes also in $LINE definiton
12 years ago
Marc Cornellà
b0fbe0d11a
Avoid evaluating special chars in $LINE on title command ( fixes #2234 )
12 years ago
Ehren Kret
ab7604e5c2
Escape both % and $ in the command line
...
Fixes issue #1884
13 years ago
Swanand Pagnis
fb3dc24ff4
Support for opening tabs and windows in the same This fixed #1498 for me on Mountain Lion
13 years ago
Robby Russell
c5ecb4e136
Fixes #1489
...
Revert "Fixed Mac OS X Terminal.app related issue with extra newlines being printed out sometimes"
This reverts commit 8f89d4d5a5 .
13 years ago
Trae Robrock
fe094712fb
resolving conflict in termsupport plugin
14 years ago
Markus Scherer
43bd46b780
fix title setting bug in xterm and urxvt
...
Before this patch, commands containing %-signs set the title wrong
(urxvt and xterm) [1] and produce strange output in urxvt [2].
test for bug 1:
> sleep 10 && echo %
sets title to "sleep 10 && echo %<<"
> sleep 10 && echo %f
doesn't change the title at all
test for bug 2 (only urxvt):
> echo %f
39m%f
^^^^^----- output
14 years ago
Jeffrey Dileo
c7105a5341
Disabled title function for emacs term mode
14 years ago
Darren Clark
8f89d4d5a5
Fixed Mac OS X Terminal.app related issue with extra newlines being printed out sometimes
14 years ago
Christian Höltje
40c47a7375
lib/termsupport now uses add-zsh-hook
...
This is needed to play nice with plugins that need various hooks.
15 years ago
Renaud (Nel) Morvan
e3cede37a0
Relax pattern matching on TERM. Closes #320 .
15 years ago
Renaud (Nel) Morvan
0cc0915bf8
Refactor DISABLE_AUTO_TITLE to be more DRY
15 years ago
Renaud (Nel) Morvan
a3e92892bb
Command title behavior no longer depend on local zsh configuration
...
Fix by derekjw. closes #52 .
15 years ago
Renaud (Nel) Morvan
d138751cbd
Escape characters used in escape sequence to avoid triggering bugs in Apple Terminal
...
Closes #45 #57 #58 #86 .
15 years ago
Lorrin Nelson
06063ab695
Introduce DISABLE_AUTO_TITLE option
15 years ago
Robby Russell
52df85440e
Revert "Re-order title/tab setting to make window titles work on OSX terminal which"
...
Was causing iTerm title to disappear entirely..
This reverts commit d4ea399b04 .
15 years ago
Matt Cable
d4ea399b04
Re-order title/tab setting to make window titles work on OSX terminal which
...
doesn't support tabs titles.
15 years ago
Fredrik Appelberg
d807221f60
fix to avoid parse errors if $TERM is empty
15 years ago