Solved

How to clear hyperterminal screen in 8051 assembly programming

Posted on 2004-10-08
2
2,998 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
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

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

773 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