aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_cursor_konsole.fish
blob: 381ff9b9c5d9555f31b90acc274b703124221ede (plain)
1
2
3
4
5
6
7
8
9
10
11
function __fish_cursor_konsole -d 'Set cursor (konsole)'
    set -l shape $argv[1]
    switch "$shape"
        case block 
            echo -en '\e]50;CursorShape=0\x7'
        case underscore
            echo -en '\e]50;CursorShape=2\x7'
        case line
            echo -en '\e]50;CursorShape=1\x7'
    end
end