Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

char(1) [plan9 man page]

CHAR(1) 						      General Commands Manual							   CHAR(1)

char, 1/2char, rschar - browse the Unicode Standard SYNOPSIS
char [ font ] 1/2char [ -s file ] [ font ] rschar [ -bgj ] [ -s file ] [ font ] DESCRIPTION
Char displays two square arrays of characters on the screen. The left square shows the first character of each 256-character page of the Unicode Standard. The right square shows the contents of one page. Using button 1 or 2 to select a character in the left square changes the right square to display the corresponding page and displays the offset and name of the page in the upper left corner of the screen. Selecting a character in the right square displays its hexadecimal value and name. In addition, any characters selected with button 2 are added to the end of 81/2's snarf buffer. Button 3 pops up a menu containing an exit button, whose selection must be confirmed by pressing button 3 again and a clear snarf button that empties the snarf buffer. The optional argument indicates which font to use (default $font). 1/2char is intended for a smaller window and displays only a single 256-character panel. Clicking button 1 on a character displays its code and, if possible, description; button 2 works similarly, but also writes the character to file, default /dev/snarf (81/2's snarf buf- fer), which it displays near the bottom of the window. Clicking button 3 selects the page corresponding to the cursor position in the panel. Typed characters are added to the file, except: backspace deletes the last character; control-U clears the buffer; control-D exits. Rschar is the radical/stroke chart from Volume 2 of the Unicode Standard. Flags can be used to restrict the display to one or more Asian character sets: -b Big Five (traditional Chinese). -g GB 2312-80 (simplified Chinese). -j JIS X 0208-1990 (Japanese). By default, all characters are shown. Button 3 controls a menu to change flag selections. Radicals are shown in a panel on the left side of the window. Clicking on a radical with button 1 or 2 brings up, on the right, a panel of characters ordered by stroke count. If the window is too small to contain them all, one may scroll through successive panels by clicking on arrows that appear at the top. Clicking on a character with button 1 displays its code; clicking with button 2 adds the character to the snarf buffer. Typed characters behave as in 1/2char. FILES
/lib/unicode contains the names of the unicode characters. Many characters have no name. SOURCE
/sys/src/cmd/char.c /sys/src/cmd/1/2char.c /sys/src/cmd/rschar SEE ALSO
81/2(1), 81/2(4) BUGS
Char needs a largish window to work properly and doesn't complain if it doesn't get it. CHAR(1)

Check Out this Related Man Page

tk_dialog(n)						       Tk Built-In Commands						      tk_dialog(n)


tk_dialog - Create modal dialog and wait for response SYNOPSIS
tk_dialog window title text bitmap default string string ... _________________________________________________________________ DESCRIPTION
This procedure is part of the Tk script library. Its arguments describe a dialog box: window Name of top-level window to use for dialog. Any existing window by this name is destroyed. title Text to appear in the window manager's title bar for the dialog. text Message to appear in the top portion of the dialog box. bitmap If non-empty, specifies a bitmap to display in the top portion of the dialog, to the left of the text. If this is an empty string then no bitmap is displayed in the dialog. default If this is an integer greater than or equal to zero, then it gives the index of the button that is to be the default button for the dialog (0 for the leftmost button, and so on). If less than zero or an empty string then there won't be any default button. string There will be one button for each of these arguments. Each string specifies text to display in a button, in order from left to right. After creating a dialog box, tk_dialog waits for the user to select one of the buttons either by clicking on the button with the mouse or by typing return to invoke the default button (if any). Then it returns the index of the selected button: 0 for the leftmost button, 1 for the button next to it, and so on. If the dialog's window is destroyed before the user selects one of the buttons, then -1 is returned. While waiting for the user to respond, tk_dialog sets a local grab. This prevents the user from interacting with the application in any way except to invoke the dialog box. KEYWORDS
bitmap, dialog, modal Tk 4.1 tk_dialog(n)
Man Page