Solved

How to clear hyperterminal screen in 8051 assembly programming

Posted on 2004-10-08
2
3,032 Views
Last Modified: 2010-10-05
Hi,

Currently I am doing 8051 assembly project which need me to make some selection on hyperterminal screen. I am facing a problem to clear current screen when I am suppose to display another screen on a 'cleaned' display.
How shall I clear the hyperterminal screen by assembly code?
Please help me.
0
Comment
Question by:jessicalim
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Expert Comment

by:Gary Dewrell
ID: 12264846
Hi jessicalim,

Here is a good basic PHP Mysql tutorial to get you started.   http://www.devdreams.com/phptutorials_displayingdatainamysqldatabase.php

God Bless
0
 
LVL 22

Accepted Solution

by:
grg99 earned 125 total points
ID: 12265875
First you have to figure out what screen-clear code Hyperterminal uses.  It's probably the semi-standard ANSI control code, but better to check first.

Here's a few of the most common ANSI control codes.  "ESC" means the ESC character code, decimal 27.

ESC[#;#H - Cursor Position (CUP)
    The first # specifies the line number, the second # specifies the column. The default for both is 1

ESC[#A - Cursor Up (CUU)
    Moves the cursor UP # number of lines

ESC[#B - Cursor Down (CUD)
    Moves the cursor DOWN # number of lines

ESC[#C - Cursor Forward (CUF)
    Moves the cursor RIGHT # number of columns

ESC[#D - Cursor Backward (CUB)
    Moves the cursor LEFT # number of columns

ESC[#;#f - Horizontal & Vertical Position
    (same as ESC[#;#H)

ESC[s - Save Cursor Position (SCP)
    The current cursor position is saved. The cursor position can be restored using (RCP) ESC[u.

ESC[u - Restore cursor position (RCP)
    Restores the cursor position saved with the (SCP) sequence ESC[s.

ESC[2J - Erase Display (ED)
    Clears the screen and moves to the home position

ESC[K - Erase Line (EL)
    Clears the current line from the cursor position

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question