Intermec 5055 Guía De Referencia

Descargar
Página de 216
5055 Programmer’s Software Kit Reference Manual
2-4
Example: Receiving Data From the NET Port or From the Keyboard (continued)
char input[1024];    // Input buffer (input from network must be 1024 characters)
IM_ORIGIN  source;   // Source(s) where input is to come from
IM_STATUS  status;   // Results of call
// Wait for input from either the keyboard or from NET
status = im_receive_input
   
(IM_KEYBOARD_SELECT | IM_NET_SELECT,
   
IM_INFINITE_TIMEOUT, &source, input);
// Data is now available in the buffer input
// if (status == IM_SUCCESS)
// Add your code segment here
}
Display Functions
Use the display functions to change or retrieve the display attributes. You can define
screen size and font size. You can also send text to the screen, erase all or part of the
display, and relocate the cursor.
The PSK includes these display functions:
im_clear_screen
im_get_display_size_physical
im_cputs
im_get_display_type
im_cputs_ex
im_putchar
im_erase_line
im_puts
im_get_cursor_xy
im_set_cursor_xy
im_get_display_mode
im_set_display_mode
Example: Clearing the Screen
// This segment clears the display and returns the cursor to the upper left corner.
// Next, it sets the cursor to an underline.
//
#include "im5055.h"
void main()
{
IM_STATUS  status;   // Results of call
im_clear_screen();
// Add your code segment here
}