aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_cursor_konsole.fish
diff options
context:
space:
mode:
authorGravatar Maxim Gonchar <gmaxfl@gmail.com>2014-01-20 16:47:13 +0400
committerGravatar Maxim Gonchar <gmaxfl@gmail.com>2014-01-20 16:47:13 +0400
commit35919000709c00274f2fbb56db2f2924585edd05 (patch)
tree91ca0debe63927dce45bc7a9628da40df3c1a081 /share/functions/__fish_cursor_konsole.fish
parent44c6fa68cfae06337801da42e273eeee5ef90a67 (diff)
More clear way of setting cursor shape
Diffstat (limited to 'share/functions/__fish_cursor_konsole.fish')
-rw-r--r--share/functions/__fish_cursor_konsole.fish11
1 files changed, 11 insertions, 0 deletions
diff --git a/share/functions/__fish_cursor_konsole.fish b/share/functions/__fish_cursor_konsole.fish
new file mode 100644
index 00000000..381ff9b9
--- /dev/null
+++ b/share/functions/__fish_cursor_konsole.fish
@@ -0,0 +1,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