pointer-shapes.sh revision 5307cd1a
1#!/bin/sh
2# $XTermId: vxt-pointer-shapes,v 1.2 2021/11/11 17:47:07 tom Exp $
3# -----------------------------------------------------------------------------
4# this file is part of xterm
5#
6# Copyright 2021 by Thomas E. Dickey
7# 
8#                         All Rights Reserved
9# 
10# Permission is hereby granted, free of charge, to any person obtaining a
11# copy of this software and associated documentation files (the
12# "Software"), to deal in the Software without restriction, including
13# without limitation the rights to use, copy, modify, merge, publish,
14# distribute, sublicense, and/or sell copies of the Software, and to
15# permit persons to whom the Software is furnished to do so, subject to
16# the following conditions:
17# 
18# The above copyright notice and this permission notice shall be included
19# in all copies or substantial portions of the Software.
20# 
21# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
24# IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
25# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
26# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28# 
29# Except as contained in this notice, the name(s) of the above copyright
30# holders shall not be used in advertising or otherwise to promote the
31# sale, use or other dealings in this Software without prior written
32# authorization.
33# -----------------------------------------------------------------------------
34# exercise xterm's pointer-shape control
35
36map() {
37	printf '\033]22;%s\033\\' "$1"
38	printf "** %s\n" "$1"
39	sleep 2
40}
41
42map X_cursor
43map arrow
44map based_arrow_down
45map based_arrow_up
46map boat
47map bogosity
48map bottom_left_corner
49map bottom_right_corner
50map bottom_side
51map bottom_tee
52map box_spiral
53map center_ptr
54map circle
55map clock
56map coffee_mug
57map cross
58map cross_reverse
59map crosshair
60map diamond_cross
61map dot
62map dotbox
63map double_arrow
64map draft_large
65map draft_small
66map draped_box
67map exchange
68map fleur
69map gobbler
70map gumby
71map hand1
72map hand2
73map heart
74map icon
75map iron_cross
76map left_ptr
77map left_side
78map left_tee
79map leftbutton
80map ll_angle
81map lr_angle
82map man
83map middlebutton
84map mouse
85map pencil
86map pirate
87map plus
88map question_arrow
89map right_ptr
90map right_side
91map right_tee
92map rightbutton
93map rtl_logo
94map sailboat
95map sb_down_arrow
96map sb_h_double_arrow
97map sb_left_arrow
98map sb_right_arrow
99map sb_up_arrow
100map sb_v_double_arrow
101map shuttle
102map sizing
103map spider
104map spraycan
105map star
106map target
107map tcross
108map top_left_arrow
109map top_left_corner
110map top_right_corner
111map top_side
112map top_tee
113map trek
114map ul_angle
115map umbrella
116map ur_angle
117map watch
118map xterm
119