fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
438 B20 linesraw
1# localization: skip(private)
2function __fish_cursor_xterm -d 'Set cursor (xterm)'
3    set -l shape $argv[1]
4
5    switch "$shape"
6        case block
7            set shape 2
8        case underscore
9            set shape 4
10        case line
11            set shape 6
12        case '*'
13            # Unknown shape
14            return
15    end
16    if contains blink $argv
17        set shape (math $shape - 1)
18    end
19    echo -en "\e[$shape q"
20end