Intermec 5055 Reference Guide
im_erase_line
5-11
5
im_erase_line
Purpose:
This function erases a portion of the current line.
Syntax:
#include "im5055.h"
void far im_erase_line
(IM_ERASE_CONTROL
void far im_erase_line
(IM_ERASE_CONTROL
fErase
);
IN Parameters:
fErase Flag that specifies the area to erase and is one of these constants:
IM_CURS_TO_END Erases from the current cursor position to the end of the line.
IM_START_TO_CURS Erases from the start of the line to the current cursor
position.
position.
IM_ALL Erases the entire line.
OUT Parameters:
None.
Return Value:
None.
See Also:
im_clear_screen
Example
/********************* im_erase_line *********************************/
#include "im5055.h"
#include "im5055.h"
IM_ERASE_CONTROL fErase;
void main(void)
{
{
int x;
im_clear_screen(); /* Clear the screen */
im_clear_screen(); /* Clear the screen */
/* Print sample lines to be erased */
for(x=0;x<16;x++)
im_puts("ABCDEFGHIJKLMOPQRST", IM_NORMAL);
for(x=0;x<16;x++)
im_puts("ABCDEFGHIJKLMOPQRST", IM_NORMAL);
/* Move cursor to desire position Row,Col */
im_set_cursor_xy(5,5);
im_set_cursor_xy(5,5);
/* Set fErase flag */
/* IM_CURS_TO_END - delete from cursor to end of line */
/* IM_START_TO_CURS - delete from start to end of line */
/* IM_ALL - delete entire line */
/* IM_CURS_TO_END - delete from cursor to end of line */
/* IM_START_TO_CURS - delete from start to end of line */
/* IM_ALL - delete entire line */
fErase = IM_START_TO_CURS;
/* Erase line as specified by fErase flag */
im_erase_line(fErase);
im_erase_line(fErase);
getch();
}