Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 28

6400 PSK Reference Manual, pages 81 to 90

Pages 81 to 90 of 272

The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Intermec 6400

Page 81

im_get_config_info

5 im_get_config_info Purpose:

This function retrieves the current 6400 configuration information string and its length. The command code is passed in as a string, and the current configuration is returned in the same string. For a list of reader and configuration commands, see Chapter 6, “Reader Command Reference,” and Chapter 7, “Configuration Command Reference.”

Syntax:

#include "im64psk.h" IM_STATUS im_get_config_info (IM_CHAR far *config, IM_USHORT far *length);

IN Parameters IN/OUT Parameters:

None. config As input, this parameter is the desired computer command (two characters) and should be NULL terminated. You can pass in several command codes at one time. As output, this parameter contains the requested configuration information string. The first two characters specify the configuration command returned. Any subsequent characters specify the configuration options currently set. For example, to get the beep duration setting, set config to “BD.” The function returns BD and the current configuration for beep duration. The user of this function must ensure that this character pointer points to a block of memory large enough to fit the returned NULL terminated configuration information string.

OUT Parameters: Return Value:

length

Length of the configuration information string.

This function returns one of these codes: IM_SUCCESS

Successfully parsed and returned configuration info string

IM_UNKNOWN_CONFIG Unable to parse configuration request string Notes:

See Also:

This function differs from im_command in that you only pass the two-character command identifier. The im_command function passes an entire command string. im_command

5-25

Page 82

im_get_cursor_style im_get_cursor_style Purpose:

This function returns the style used to display the cursor.

Syntax:

#include “im64psk.h” IM_CURS_TYPE im_get_cursor_style (void);

IN Parameters:

None

OUT Parameters:

None

Return Value:

This function returns a flag indicating cursor style: IM_UNDERLINE Single underling IM_NO_CURSOR No cursor displayed

Notes:

The only supported cursor style is IM_UNDERLINE.

Example See example for im_get_display_mode.

5-26

Page 83

im_get_cursor_xy

5 im_get_cursor_xy Purpose:

This function retrieves the current cursor position.

Syntax:

#include "im64psk.h" IM_STATUS im_get_cursor_xy (IM_USHORT far *row, IM_USHORT far *col);

IN Parameters: OUT Parameters:

None. row Pointer to the vertical position. The top of the display is row 0. col

Return Value:

Pointer to the horizontal position. The left edge of the display is column 0.

IM_OK

Success

5-27

Page 84

im_get_display_mode im_get_display_mode Purpose:

This function returns the display font, character height and width, and scrolling and wrapping status.

Syntax:

#include "im64psk.h" IM_STATUS im_get_display_mode (IM_FONT_TYPE far *font, IM_UCHAR far *phys_width, IM_UCHAR far *phys_height, IM_BOOL far *scroll, IM_BOOL far *wrap);

IN Parameters: OUT Parameters:

None. font Specifies the font type and is one of these constants: IM_FONT_STANDARD Text is 5 x 7 pixels IM_FONT_LARGE Text is 5 x 14 pixels IM_FONT_SPECIAL Text is 10 x 14 pixels phys_width Specifies the width of the physical display in the number of characters in the current font that the display can hold (columns). phys_height Specifies the height of the physical display in the number of characters in the current font that the display can hold (rows). scroll Scrolling always on. wrap Wrapping always on.

Return Value: Notes: See Also:

5-28

IM_SUCCESS Success To omit a parameter, set it to 0. No information for that parameter is returned. im_set_display_mode

Page 85

im_get_display_size_physical

5 im_get_display_size_physical Purpose:

This function returns the current display size.

Syntax:

#include "im64psk.h" IM_STATUS im_get_display_size_physical (IM_USHORT far *charstall, IM_USHORT far *charswide);

IN Parameters:

None.

OUT Parameters:

charstall

Current setting for the number of rows in the physical display.

charswide

Current setting for the number of columns in the physical display.

Return Value:

None.

Notes:

The default physical display for the 6400 is 20 columns by 16 rows.

See Also:

im_get_display_mode, im_get_display_type, im_set_display_mode

5-29

Page 86

im_get_display_size_virtual im_get_display_size_virtual Purpose:

This function returns the current size of the virtual display.

Syntax:

#include "im64psk.h" void im_get_display_size_virtual (IM_USHORT far *charstall, IM_USHORT far *charswide);

IN Parameters:

None.

OUT Parameters:

charstall charswide

Return Value: See Also:

5-30

Current setting for the number of rows in the virtual display. Current setting for the number of columns in the virtual display.

None. im_get_display_mode, im_get_display_type, im_set_display_mode, im_set_display_type

Page 87

im_get_display_type

5 im_get_display_type Purpose:

This function gets the hardware display type for the 6400.

Syntax:

#include "im64psk.h" IM_STATUS im_get_display_type (IM_DISPLAY_TYPE *type);

IN Parameters: OUT Parameters: Return Value: See Also:

None. type The constant returned is IM_LCD_6400 (6400 display). IM_SUCCESS Success im_get_display_mode, im_set_display_mode, im_get_display_size_physical

5-31

Page 88

im_get_follow_cursor im_get_follow_cursor Purpose:

When the display is in 80 x 25 mode, the viewport follows the cursor as it moves. The follow-the-cursor feature can be enabled or disabled. This function retrieves the current setting.

Syntax:

#include "im64psk.h" IM_STATUS im_get_follow_cursor (IM_CONTROL *follow_cursor);

IN Parameters: OUT Parameters:

None. The follow_cursor parameter is one of these constants: IM_ENABLE IM_DISABLE

Return Value: See Also:

Follow-the-cursor mode is enabled Follow-the-cursor mode is disabled

IM_SUCCESS im_set_follow_cursor, im_cursor_to_viewport, im_viewport_to_cursor

Example /******************** im_get_follow_cursor *******************************/ /* Also with: im_set_follow_cursor */ #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <ctype.h> #include "im64psk.h" #define

ESC_CHAR

0x1B void main (void) { IM_UCHAR ch, user_option; IM_CONTROL old_lock_cursor; IM_CONTROL new_lock_cursor; clrscr(); gotoxy(1,1);

/* Clear screen */ /* Position message */

/* Get the current status of viewport follow cursor for restore later */ im_get_follow_cursor(&old_lock_cursor); /* Get user's input option, 'y' for disable viewport follow cursor */ im_cputs("Enable viewport\nfollows cursor(y)?"); user_option = getche(); user_option = toupper(user_option); if (user_option == 'Y') {

5-32

Page 89

im_get_follow_cursor

5 im_get_follow_cursor (continued) /* Enable viewport follow cursor */ im_set_follow_cursor(IM_ENABLE); } else { /* Disable viewport follow cursor */ im_set_follow_cursor(IM_DISABLE); } /* Get new viewport follow cursor status after setting */ im_get_follow_cursor(&new_lock_cursor); /* Display user's input message */ im_cputs("\n\n'ESC' to quit!\nType keys to check\n", IM_NORMAL); printf("viewport follow\n"); if (new_lock_cursor == IM_ENABLE) printf("cursor ON !!!!!"); else printf("cursor OFF !!!!"); /* Enter any characters to check viewport follow cursor until 'ESC' key. */ while ( (ch = getche()) != ESC_CHAR ) ; /* Restore original follow cursor setting */ im_set_follow_cursor(old_lock_cursor);

}

5-33

Page 90

im_get_input_mode im_get_input_mode Purpose:

This function provides compatibility with the JANUS PSK functions. This function retrieves the current input mode setting. Input modes affect how the 6400 interprets and stores input.

Syntax:

#include "im64psk.h" IM_MODE im_get_input_mode (void);

IN Parameters:

None.

OUT Parameters:

None.

Return Value:

This function returns one of these codes: IM_PROGRAMMER Input is returned as a string (default). Simple line editing is permitted using the backspace key. IM_WEDGE

Input is returned as a string. Use Backspace for simple line editing.

IM_DESKTOP Keyboard characters are returned as 4 bytes. The first byte is the ASCII code. The second byte is the scan code, and the last 2 bytes are flags for modifier keys (Shift, Control, and Alt). See Also:

5-34 im_set_input_mode, im_receive_input